File Exchange

image thumbnail

figtitle

version 1.4.1 (119 KB) by Chad Greene
Create a title for a figure with multiple subplots.

8K Downloads

Updated 20 May 2019

View License

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.
Syntax:
figtitle('TitleString')
figtitle('TitleString','TextProperty','TextValue')
h = figtitle(...)

Description:
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.

Examples:

figtitle('My Title')

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

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

h = figtitle('My Title');
set(h,'edgecolor','magenta');

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: http://www.mathworks.com/matlabcentral/fileexchange/42114-ntitle. The image for this FEX upload was created using the figtitle and ntitle example given in figtitle.m.

Cite As

Chad Greene (2021). figtitle (https://www.mathworks.com/matlabcentral/fileexchange/42667-figtitle), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: mtit: a pedestrian major title creator, ntitle

Inspired: SimOutUtils, label

Community Treasure Hunt

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

Start Hunting!

figtitle_documentation