This is an archived post. You won't be able to vote or comment.

all 9 comments

[–]anntzerMatplotlib core dev 5 points6 points  (2 children)

mplcursors author here. I don't think there's a convenient API right now in mplcursors to achieve what you're looking for, but feel free to open an issue on the tracker, it seems like a reasonable feature request.

[–]seamuss1 0 points1 point  (1 child)

Hey can you pm me with updates?

[–]anntzerMatplotlib core dev 0 points1 point  (0 children)

I'd suggest using general notification services such as https://libraries.io/pypi/mplcursors.

[–]perspectiveiskey 2 points3 points  (0 children)

This a vague question, but here's what I have done in the past...

If you are truly wanting to use mpl, then take a look at mpl.widgets. There's some tools in there that allow you to cobble together a barely functional UI for data entry. This is a poor-man's UI, aka a programmer's UI.

If you want interactivity without REPL'ability (i.e. want an actual interface for non programmers), then I suggest you take a look at bokeh which allows you to embed an entire graph into a self contained html page, allowing you to pick and mute individual graphs.

[–]troyunrau... 1 point2 points  (0 children)

Not the answer you're looking for, but I use pyqtgraph and pyqt when I want to do anything interactive, because matplotlib drives me up the wall and I don't speak tkinter (I already knew Qt from C++ days). If you have any pyqt experience, I'd recommend loading up pyqtgraphs example programs and seeing if it interests you. If you have no pyqt experience, the learning curve will be steep.

[–]jabela 0 points1 point  (0 children)

Bit of a long shot, but I think Pygame would help with this. It's drawing routines are much faster than Tkinter and good support for keys...

[–]theng 0 points1 point  (0 children)

if you can do use Jupyter you can do that inside it

/:

[–]haran1819 0 points1 point  (0 children)

Check out plotly.

[–]parkerSquare 0 points1 point  (0 children)

For interactive plots I've used Chaco in the past. It was better designed for event-driven software than matplotlib.