Title in Subplot - How to do without shrinking plot size

1 回表示 (過去 30 日間)
Matthew
Matthew 2012 年 5 月 11 日
I want to add a title to a series of plots (generated using subplot). I have three across the sheet (so 3,3,3). When I add the title the middle plot (subplot 1,3,2) shrinks in size and is not the same as the others. How can I find a workaround on this?
Thanks, matt
  2 件のコメント
Daniel Shub
Daniel Shub 2012 年 5 月 11 日
When I run
h = arrayfun(@(ii)subplot(3,3,ii), 1:9);
arrayfun(@(h)plot(h, 1:10), h);
title(h(2), 'hello')
adding the title shrinks all the plots, not just the the one the title is added to. What do you mean by (subplot 1,3,2)?
Matthew
Matthew 2012 年 5 月 11 日
Daniel,
Thanks for the info.
to address your questions....I should have been more clear.
1. By stating subplot 1,3,2 - I was merely identifying the middle subplot of the 3 across in the first row.
2. I wonder if the problem is that I defined the "title" within the subplot routine - making it a title for only the middle subplot; thus shrinking it in size.

サインインしてコメントする。

採用された回答

Honglei Chen
Honglei Chen 2012 年 5 月 11 日
You can put a text box at the title place. This should not shrink the axes

その他の回答 (1 件)

Matthew
Matthew 2012 年 5 月 11 日
Daniel & Honglei
Many thanks for the responses. The Text box add will be the quickest resolution to this for me, as the resizing of one (or all of the graphs) becomes problematic - I am exporting a vectorized image for inclusion in a publication.\
Many Thanks, Matt

カテゴリ

Help Center および File ExchangeTitle についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by