suptitle in 2016a

28 visualizaciones (últimos 30 días)
T_Unit
T_Unit el 22 de Mzo. de 2016
Comentada: Bart Van Hove el 12 de Abr. de 2019
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?

Respuesta aceptada

T_Unit
T_Unit el 22 de Mzo. de 2016
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.

Más respuestas (3)

Steven Lord
Steven Lord el 11 de Abr. de 2019
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 comentario
Bart Van Hove
Bart Van Hove el 12 de Abr. de 2019
Brilliant! Thanks for the new feature

Iniciar sesión para comentar.


Azzi Abdelmalek
Azzi Abdelmalek el 22 de Mzo. de 2016
There is no a function named suptitle in Matlab. Maybe you need to use subplot command
  1 comentario
T_Unit
T_Unit el 22 de Mzo. de 2016
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.

Iniciar sesión para comentar.


elijah tapiwa chipato
elijah tapiwa chipato el 16 de Dic. de 2016
Editada: elijah tapiwa chipato el 16 de Dic. de 2016
Is it possible to put a hat, bar or dot on Greek letters when using suptitle
  1 comentario
Bart Van Hove
Bart Van Hove el 11 de Abr. de 2019
Editada: Bart Van Hove el 11 de Abr. de 2019
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.

Iniciar sesión para comentar.

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by