GUI - how to set fixed window dimensions

Hello all, I cannot find how to set dimensions of the GUI window. I need to have the dimension of both axes in proportion 1:1 for each case. whether for fullscreen or for floating window, otherwise my background image is flattened, as you can see on the image attached below. The first picture is with floating window, where the dimensions are pretty much the same, but when I set fullscreen, image is flattened Is there any tool how to set it?

3 件のコメント

Thiago Henrique Gomes Lobato
Thiago Henrique Gomes Lobato 2020 年 3 月 22 日
Have you already tried axis square?
axis square
Miroslav Jiránek
Miroslav Jiránek 2020 年 3 月 22 日
編集済み: Miroslav Jiránek 2020 年 3 月 22 日
yes I tried. But the ratio between x and y is still not fixed when I'm changing the window size
Thiago Henrique Gomes Lobato
Thiago Henrique Gomes Lobato 2020 年 3 月 22 日
How are you applying it? I did a very simple example with just one plot in a GUI using axis square and the ratio remains constant independently of the windos size.

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

 採用された回答

Adam Danz
Adam Danz 2020 年 3 月 22 日
編集済み: Adam Danz 2020 年 3 月 24 日

0 投票

axis equal equates the aspect ratio between the axes so that squares appear as square.
When applying this to your gui, provide the axis handle,
axis(axisHandle, 'equal')

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeGraphics Object Properties についてさらに検索

質問済み:

2020 年 3 月 22 日

編集済み:

2020 年 3 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by