give title below a figure

23 ビュー (過去 30 日間)
Elysi Cochin
Elysi Cochin 2013 年 1 月 18 日
is it possible to give title below a figure?? if so can someone show me how to do it?
  2 件のコメント
Muruganandham Subramanian
Muruganandham Subramanian 2013 年 1 月 18 日
Do you need to include 'title' Below xlabel?
Elysi Cochin
Elysi Cochin 2013 年 1 月 18 日
no sir... when i give as below the titles are displayed above each image.... is it possible to display the title below the image....
figure(1),
set(gcf, 'Position', get(0,'Screensize'));
subplot(1,3,1), imshow(I1); title('Original Image');
subplot(1,3,2), imshow(I2); title('Gray Image');
subplot(1,3,3), imshow(I3); title('Binary Image');

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

採用された回答

Jurgen
Jurgen 2013 年 1 月 18 日
subplot(1,3,1); imshow(rand(300)); mt(1) = title('TEST1');
subplot(1,3,2); imshow(rand(300)); mt(2) = title('TEST2');
subplot(1,3,3); imshow(rand(300)); mt(3) = title('TEST3');
set(mt,'Position',[150 300],'VerticalAlignment','top','Color',[1 0 0])
something like that?

その他の回答 (1 件)

Jan
Jan 2013 年 1 月 18 日
Create a TEXT object in the current axes and set it outside the plot area:
text(0.5 -0.1, 'Sub title', 'Units', 'normalized')
Does this work? I cannot test it currently.
What about xlabel?
Or create an invisible axes in the background:
FullAxesH = axes('Units', 'normalized', 'Position', [0,0,1,1], ...
'Visible', 'off');
Now get the position of each subplot:
H = subplot(1,3,1);
Pos = get(H, 'Position');
and use this to define the position of the TEXT.

カテゴリ

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