Create a title for a figure with multiple subplots.
8K descargas
Actualizado 20 may 2019

Ver licencia

figtitle creates a title centered at the top of a figure. This may be used to add a title to a figure with several subplots.
h = figtitle(...)

figtitle('TitleString') centers a title at the top of a figure and sets the figure name to 'TitleString'.

figtitle('TitleString','TextProperty',TextValue) formats the title with property name value pairs (e.g., 'FontSize',20)

h = figtitle(...) returns a handle h of the newly-created title.


figtitle('My Title')

figtitle('My Title','fontweight','bold')

figtitle('My Title,'fontsize',18,'fontangle','oblique')

h = figtitle('My Title');

In many cases a figure title may overlap a subplot title. To reduce ambiguity, try pairing this function with the ntitle function, which is available on the Mathworks File Exchange here: The image for this FEX upload was created using the figtitle and ntitle example given in figtitle.m.

Citar como

Chad Greene (2024). figtitle (, MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2012b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Más información sobre Title en Help Center y MATLAB Answers.

Inspirado por: mtit: a pedestrian major title creator, ntitle

Inspiración para: SimOutUtils, label

Community Treasure Hunt

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

Start Hunting!


Versión Publicado Notas de la versión

Added live scripts

Vectorized a loop.

Added example file. Changes to figtitle: now supports invisible figures and now changes the name of figures to input title string.

Acknowledged submission 3218.

Updated examples. Also no longer returns a title handle unless the user requests it.