Change de default position of plot

Dear;
This a silly question
Sometimes when I debug a program I need to plot some of the variables in different figures
The figure apear just in the middle of the script editor, so to continued debugging I have to move the plot
Is there any way to chage the default position where the plot appears?
Many thanks,

1 件のコメント

Geoff Hayes
Geoff Hayes 2020 年 5 月 19 日
Luis - I think that in order to set the position of where the plot appears, you would need to create the figure first and set its position before calling plot
figure('Position',[0 0 100 100]); plot(1:42,42:-1:1)
See figure position property for more details.

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

 採用された回答

Walter Roberson
Walter Roberson 2020 年 5 月 19 日

6 投票

set(groot, 'DefaultFigurePosition', [x, y, width, height])

1 件のコメント

Marc Compere
Marc Compere 2024 年 4 月 30 日
編集済み: Marc Compere 2024 年 4 月 30 日
to get DefaultFigurePosition use:
left_bottom_width_height = get(groot, 'DefaultFigurePosition')
to set DefaultFigurePosition:
set(groot, 'DefaultFigurePosition', [left, bottom, width, height])

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCreating, Deleting, and Querying Graphics Objects についてさらに検索

質問済み:

2020 年 5 月 19 日

編集済み:

2024 年 4 月 30 日

Community Treasure Hunt

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

Start Hunting!

Translated by