How can I standardize figure sizes

조회 수: 33 (최근 30일)
Yewande Oni
Yewande Oni 2015년 5월 21일
댓글: Yewande Oni 2015년 5월 21일
Hiya,
I want my figures to all be created in the same dimension. Currently my figures are the size of the window it opens in (which are usually quite small) and I have to stretch it out. Is there a way for them to open up a preset size?
Thanks
Yewande

채택된 답변

Thorsten
Thorsten 2015년 5월 21일
figure('position', [0, 0, 400, 300])

추가 답변 (1개)

Joseph Cheng
Joseph Cheng 2015년 5월 21일
Use the set() function and parameters 'position' and 'units'.
%example:
figure;
set(gcf,'units','normalized','position',[0 0 1 1])
will make the figure window full sized
  댓글 수: 5
Yewande Oni
Yewande Oni 2015년 5월 21일
I want it to open each figure in a different window with the correct dimensions and at the moment it does not do that. It opens both figures in the same window.
Yewande Oni
Yewande Oni 2015년 5월 21일
It was an error my end I just needed to clear the workspace and run it again :)
Thanks

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Entering Commands에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by