Skip to content

title

plot · scripts/plot/appearance/title.m

: h = title (str)
: h = title (ax, str)
: h = title (…, prop, val, …)

Set the text label of the axes (a title above the plot).

str is a character array or a cell array of character vectors (one line per element); an empty value clears the label. Trailing property/value pairs are applied to the text object, for example "FontSize" or "Interpreter". The label is the text object stored in the axes property "title"; the same object is reused by later calls and its handle is returned.