Change de default position of plot

조회 수: 182 (최근 30일)
Luis Isaac
Luis Isaac 2020년 5월 19일
편집: Marc Compere 2024년 4월 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
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일
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개)

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by