How can I reset the zoom factor of uiaxes (AppDesigner) programmatically?
Show older comments
I'm programming a GUI in AppDesigner with an uiaxes object. I can zoom in/out by scrolling with the mouse wheel. But how can I reset the axis limits in the program? I would like to use app.uiaxes.XLim='auto' and app.uiaxes.YLim='auto' to get proper axis limits.
1 Comment
Tom Paraschuk
on 12 Feb 2019
I am also looking for the answer to this.
Answers (1)
Joe Cosentino
on 9 Jun 2020
This answer may be a year late, but perhaps this will help someone else.
Give the following a try:
app.UIAxes.XLim = [-inf inf];
app.UIAxes.YLim = [-inf inf];
This technique is referenced in the documentation for UIAxes, linked below. It worked for one of my projects.
1 Comment
Shane Lockett
on 22 Jul 2021
This response is over a year late, but this helped me.
Thank you.
Categories
Find more on Startup and Shutdown 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!