Hello All,
I used a custom piece of code to change the domain and range axis of a plot to implement custom zooming and panning. Now, when i try to reset the domain and range axes to their initial values, I am unable to do that. Is there any library function which does this? Do let me know.
Bringing a plot to its original state
If, by "initial values" you mean the entire plot, then you can call this method on each zoomed axis
On the other hand, if by "initial values" you mean the axis state before the most recent zoom then you will need to add some code to save the previous range of each axis immediately before the calls to setRange(...)
Code: Select all
public void setAutoRange(boolean auto)