May-16-2022, 08:38 PM
(This post was last modified: May-16-2022, 08:38 PM by deanhystad.)
My earlier post mentioned having a method named "scale_plot" that rescaled the plot. At that time I thought that drawing the initial plot and drawing the rescaled plot would be the same. Now I think they are completely different operations. You are not going to be happy with drawing a new plot every time you move the slider. It is going to be slow and very clunky. What you want to do is redraw the existing plot with different axis scaling or different data (I'm not sure exactly what your slider is supposed to do).
Should be easy to find lots of examples of how to do this. Like this example:
https://www.geeksforgeeks.org/how-to-upd...atplotlib/
Should be easy to find lots of examples of how to do this. Like this example:
https://www.geeksforgeeks.org/how-to-upd...atplotlib/