App Designer: keep axes limits fixed

21 ビュー (過去 30 日間)
Dominik Müller
Dominik Müller 2021 年 1 月 8 日
コメント済み: Cris LaPierre 2021 年 1 月 11 日
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?
Thanks in advance.

回答 (1 件)

Cris LaPierre
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 件のコメント
Dominik Müller
Dominik Müller 2021 年 1 月 11 日
If you take a look at the picture in my post you can see the X limits are on the right of the axis and not the bottom where my X axis should be. If the limits are set to 'auto' the X axis is at the bottom, the Y axis on the left. If I set the X limits manually the X axis is on the rigth of my UIAxes and if I plot in this axis my plot is rotated by 90 degrees.
Cris LaPierre
Cris LaPierre 2021 年 1 月 11 日
Can you share your mlapp file? You can attach it to your post using the paperclip icon.

サインインしてコメントする。

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by