Resizing Axis in App Designer Leaves 2nd image in GUI display

47 次查看(过去 30 天)
My GUI looks ok, and all the code runs ok.
But, I want to add a few more text boxes, thus I need to enlarge the size, then resize the two plots. What happens when I do this is shown below, First step is I enlarge the Rx Signal axis, then when I drag it into position, I get a a total mess where there's another image of the 2nd axis and the Tx Signal axis I haven't touched, disappears...
  1 个评论
Divyajyoti Nayak
Divyajyoti Nayak 2024-11-17,18:23
Hi @Dr W Kurt, it would be helpful if you could provide the .mlapp file. Then it would be easier to debug the issue since it is difficult to recreate your GUI from scratch wih just the picture provided.

请先登录,再进行评论。

回答(1 个)

Jaimin
Jaimin 2024-11-26,8:29
When working with MATLAB App Designer, you might encounter some unexpected behaviour when resizing and repositioning UI components like axes, especially if the layout isn't quite right. Here are a few steps and tips that might help you manage the layout better and avoid issues when adjusting plots:
Check the Grid Layout: If you are working with a uigridlayout, it is important to configure the grid correctly to manage how components resize. Ensure that the RowHeight and ColumnWidth properties are set appropriately, using options like fit, auto, or specific sizes as needed.
Use AutoResizeChildren: Enable the AutoResizeChildren property of the parent container, such as a panel or figure. This setting helps automatically adjust the size of child components when the parent container is resized.
Layering and Visibility: Check the visibility and layering of components to prevent overlap or hiding due to incorrect Z-order. Use Bring to Front or Send to Back in App Designer to manage component layers.
For more information kindly refer following MathWorks Documentation.
I hope this will be helpful.

类别

Help CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

产品


版本

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by