Matplotlib Series Part#14 - Pick Event (To make your Plots Interactive)
Вставка
- Опубліковано 5 жов 2022
- In this Matplotlib Tutorial, we will be discussing the "Pick Event". This event can be used to actually interact with your Matplotlib Window, such as selecting a certain point or dragging an object, etc.
Website Link:
Pick Event: coderslegacy.com/python/matpl...
Event Handling: coderslegacy.com/python/matpl...
You are a lifesaver. Thank you for these videos!
I’m having to make a graph software where we use dijkstras algorithm to calculate the distance from two points you select with a left click for the starting point and a right click for the ending point.
This has given me an actual base to work from and I appreciate it so much. You have 100% earned this new subscriber and deserve many more.
Plus you also actually explain what the things do, and show mistakes which helps a ton
Thank you! You comment really means alot to me. : )
Your examples with explanations were very helpful. Thank you!
Would the same technique apply if you want to allow the user to select which series from a csv file to show? When a new series is displayed, the legend/scaling should automatically update as well.
Unfortunately, I haven't seen any off-the-shelf solutions for this.. perhaps csv-plot and plotjuggler being the closest.
BTW, Javascript seems to have many charting libraries (ggplot, Observable, D3, plotly.js etc), but python has gnuplot-py, matplotlib.
is there a way to extract these figures to html file ? i know you can do it with plotly but how about matplotlib