We would like to expand some of the time series data with matplotlib's gui enlargement tool (muspectacles button) and cross button to create a program that displays the maximum/minimum value and frequency spectrum of the time series data in the expanded time series range.
As for how to specify the range, I would like to use the gui enlargement tool or cross button instead of using the xlim function.
If you can get an enlarged range of x-axis information, it would be easy to display the maximum/minimum value and frequency spectrum based on the x-axis information, but I don't know how to get the essential x-axis information.Could someone please let me know?
python matplotlib
You cannot create a program like the question only with matplotlib
. You cannot get information about the external module because the matplotlib
ends with an image of the graph and plots using an external module.If you want to use the GUI to manipulate the graph, you must first decide which GUI to use and call matplotlib
from the GUI side you want to use.
For the Web, libraries [Bokeh][1]
and [Plotly][1]
already exist.I think you should use it first.
If you're using GTK or Qt, you'll need to create a GUI application using your respective libraries, and then you'll have to work with matplotlib
. The good news is that it's OSS, so you'll find out what to do by looking at the source code.
© 2024 OneMinuteCode. All rights reserved.