Change de default position of plot
202 次查看(过去 30 天)
显示 更早的评论
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
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)
采纳的回答
Walter Roberson
2020-5-19
set(groot, 'DefaultFigurePosition', [x, y, width, height])
1 个评论
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 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!