Matplotlib Series Part#14 - Pick Event (To make your Plots Interactive)

preview_player
Показать описание
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:
Рекомендации по теме
Комментарии
Автор

Your examples with explanations were very helpful. Thank you!

johnsinclair
Автор

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

noahsaxon
Автор

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.

bennguyen
Автор

is there a way to extract these figures to html file ? i know you can do it with plotly but how about matplotlib

ovnii_