suptitle in 2016a

133 ビュー (過去 30 日間)
T_Unit
T_Unit 2016 年 3 月 22 日
コメント済み: Bart Van Hove 2019 年 4 月 12 日
I have been using suptitle in older versions of matlab.
This seems to have disappeared from 2016a - am I missing something or has it gone?

採用された回答

T_Unit
T_Unit 2016 年 3 月 22 日
Solved - found in another toolbox. It was included as part of a demo in the Bioinformatics Toolbox.
The below is from the doc file for it for future reference...
suptitle puts a title above all subplots.
suptitle('text') adds text to the top of the figure
above all subplots (a "super title"). Use this function
after all subplot commands.
suptitle is a helper function for yeastdemo.

その他の回答 (3 件)

Steven Lord
Steven Lord 2019 年 4 月 11 日
If you are using release R2018b or later, I recommend using the sgtitle function instead of suptitle.
subplot(2, 2, 1);
plot(1:10);
subplot(2, 2, 4);
surf(peaks);
sgtitle('$\hat{a} + \frac{b}{c}$', 'Interpreter', 'LaTeX')
  1 件のコメント
Bart Van Hove
Bart Van Hove 2019 年 4 月 12 日
Brilliant! Thanks for the new feature

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


Azzi Abdelmalek
Azzi Abdelmalek 2016 年 3 月 22 日
There is no a function named suptitle in Matlab. Maybe you need to use subplot command
  1 件のコメント
T_Unit
T_Unit 2016 年 3 月 22 日
There is, I found it in another toolbox - it was included as part of a demo in the Bioinformatics Toolbox.
The below is from the doc file for it for future reference...
suptitle puts a title above all subplots.
suptitle('text') adds text to the top of the figure
above all subplots (a "super title"). Use this function
after all subplot commands.
suptitle is a helper function for yeastdemo.

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


elijah tapiwa chipato
elijah tapiwa chipato 2016 年 12 月 16 日
編集済み: elijah tapiwa chipato 2016 年 12 月 16 日
Is it possible to put a hat, bar or dot on Greek letters when using suptitle
  1 件のコメント
Bart Van Hove
Bart Van Hove 2019 年 4 月 11 日
編集済み: Bart Van Hove 2019 年 4 月 11 日
I'm not sure you can use the Latex interpreter, but one feature this (practically undocumented function) supports is multiple lines when given a cell array of strings. I find the main downside of suptitle, apart from being non-standard, is the excessive amount of space it allocates for itself on a figure, shrinking the subplots below it.

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

カテゴリ

Help Center および File ExchangeLabels and Annotations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by