Linking plotbox sizes in App Designer

2 ビュー (過去 30 日間)
Scott
Scott 2020 年 9 月 28 日
回答済み: Mohammad Sami 2020 年 9 月 29 日
I have an App Designer app where part of the UI displays an image. The image will always have a 1x1 aspect ratio. It has one plot below it and another plot next to it which display the cross section of the image along the x- or y-axis. For my use, it is important that the x-axis length of the x-cross section and the x-axis of the image are identical.
As you can see in the image above, they are (almost) perfectly aligned, good enough for my purpose.
However, I would like to be able to resize the window, without the alignment breaking. This is what currently happens:
How can I make this work?
The grid layout does not help in this scenario, because it locks me out of the position aspect of the UIAxes.
Is the correct way to create a sizeChangedCallback and to then programmatically resize the axes using their position property?
Is there an easier way I am missing?

回答 (1 件)

Mohammad Sami
Mohammad Sami 2020 年 9 月 29 日
You can try placing axes inside the uipanel. That way you would still be able to use the position property of the uiaxes.

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

タグ

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by