App Designer: keep axes limits fixed
35 次查看(过去 30 天)
显示 更早的评论
Hi folks,
I'm working on a GUI with two UIAxes. On one axes I want to show the whole plot and so the Xlim, Ylim and ZLim are set to 'auto'. On the second UIAxes I want to create a detailed/zoomed view on what I'm plotting. But how to keep the Axes limits fixed automatically to a value I want? If I set XLim to 'manual' and Ylim & ZLim to 'auto' the UIAxes is kind of rotated, the x axis is on the rigth of my UIAxes and the whloe plot is rotated by 90°.
The limits have to be predefined in App Designer and can not be changed via code.
Can anyone help?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/482228/image.png)
Thanks in advance.
0 个评论
回答(1 个)
Cris LaPierre
2021-1-8
Not sure what you mean by "rotated".
This is how you can set the X lmiits in you can't use code, though not all types of plots will honor them.
2 个评论
Cris LaPierre
2021-1-11
Can you share your mlapp file? You can attach it to your post using the paperclip icon.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!