How do i expand this figure so all graphs fit perfect

조회 수: 1 (최근 30일)
jason
jason 2014년 11월 12일
댓글: jason 2014년 11월 12일

채택된 답변

Chad Greene
Chad Greene 2014년 11월 12일
Instead of using subplot(2,2,1), try this
figure
axes('position',[0 .5 .5 .5])
plot(1:10,1:10,'b')
axes('position',[.5 .5 .5 .5])
plot(1:10,1:10,'r')
axes('position',[0 0 .5 .5])
plot(1:10,1:10,'k')
axes('position',[.5 0 .5 .5])
plot(1:10,1:10,'m')
  댓글 수: 3
Chad Greene
Chad Greene 2014년 11월 12일
편집: Chad Greene 2014년 11월 12일
Replace my plot lines with your imshow lines. And change your title lines to
title('my title','vert','top','backgroundcolor','white')
jason
jason 2014년 11월 12일
thank you, it works perfect.

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

추가 답변 (1개)

Robert Cumming
Robert Cumming 2014년 11월 12일
you may be interested in this FEX submission which allows for you to customise the spacing.

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by