I have 6 images that I am displaying with imshow() each in a axes element.
Each one has a static text label centered over it.
I want these arranged as a 2x3 (3 wide) grid of "subplots" on the left or right side of the GUI. And I want each image to grow as the GUI is expanded, so that the grid of displays has the text centered and they stay in a grid.
Then on the right side, I want a small panel of buttons (about 3) and a table below that. This section should not grow or shrink (or at least stay anchored to the right of the image grid.
Ideas on how to do this? examples?

 채택된 답변

Geoff Hayes
Geoff Hayes 2015년 4월 18일

0 개 추천

If you want your axes controls to be scaled appropriately as the GUI is resized, then take a look at GUI Options which allows you to set the GUI Resize behaviour to proportional so that the software automatically scales the components in the UI in proportion to the new figure window size.

댓글 수: 3

Doctor G
Doctor G 2015년 4월 20일
Thanks, that helps. But I was looking to keep the UIPanel that holds the buttons, text boxes, and uitable as a fixed size. And have the 2 x 3 grid of uiaxes with the imshow in each one to be scalable. So that the pictures would grow to fill the available space.
The text boxes for the uitable and for the buttons do not really have to grow and scale as the window grows. Just hug the top left of the window.
Easy to do in .NET, Java Swing, HTML, etc.
Adam
Adam 2015년 4월 20일
편집: Adam 2015년 4월 20일
Setting the Resize behaviour to proportional will change the Units property of all your UI components to normalized. For those components you wish to not have resize you should change the Units to something else (I favour 'Pixels' , but basically anything other than normalized will stop them resizing).
To be honest resizing behaviour in Matlab GUIs is generally horrible, but this kind of works if you don't expect too much of it!!
Doctor G
Doctor G 2015년 4월 22일
Perfect for my case. But yes, I would like full .NET WCF or Java Swing containers with flow control. There is something in matlab undocumented that shows there are some rudimentary stuff you can get to: Matlab UIContainer

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Environment and Settings에 대해 자세히 알아보기

제품

태그

질문:

2015년 4월 17일

댓글:

2015년 4월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by