How to change the size of a plot figure

1,089 ビュー (過去 30 日間)
Ivan Mich
Ivan Mich 2019 年 10 月 23 日
コメント済み: Adam Danz 2025 年 9 月 26 日
Hello,
I have a question. I would like to remake the size of my plots in matlab. Especially, i have observed that the plots have a "rectangle" format. So I would like to make my plot in a "square" format. I mean that I want my X axes to have the same size with the Y axis.
Could you please help me ?

採用された回答

Lucifer__
Lucifer__ 2019 年 10 月 23 日
Set the ‘Position’ property on the current figure (gcf). By default, the position is in pixels.
x0=10;
y0=10;
width=550;
height=400
set(gcf,'position',[x0,y0,width,height])
You can specify other units (inches, centimeters, normalized, points, or characters). For example:
set(gcf,'units','points','position',[x0,y0,width,height])
  2 件のコメント
Lucifer__
Lucifer__ 2019 年 10 月 23 日
Adam Danz
Adam Danz 2025 年 9 月 26 日

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePrinting and Saving についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by