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 Center および File ExchangeSubplots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by