How can I change the default Original View that a Figure resets to when I double-click inside the Figure Axes?
21 views (last 30 days)
Show older comments
MathWorks Support Team
on 20 Jun 2017
Edited: MathWorks Support Team
on 8 Mar 2021
I have plotted some data and would like to pan, zoom, and rotate this data. However, when I double click, it takes me back to the view from when the data is first plotted. This is the same view that I see if I right click and select "Reset to Original View" within the axes. Is there a way to reset the functionality for double clicking so that I double click, the view instead changes to some previously specified axis limits and camera angle?
Accepted Answer
MathWorks Support Team
on 8 Mar 2021
Edited: MathWorks Support Team
on 8 Mar 2021
This can be done by calling the "zoom reset" command from the Command Window:
1. Plot some data. For example, you could run the following command to produce a sample figure:
>> surf(peaks)
2. Change the view: pan, zoom, etc, until you reach a desired view to save as the default.
3. Reset the default view:
>> zoom reset
To verify that this works, proceed again to change the view: pan, and zoom so the data appears differently. Then double-click, and observe that you revert to the view following step 2 above.
For more information, please refer to the following documentation link:
0 Comments
More Answers (0)
See Also
Categories
Find more on Visual Exploration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!