Skip to content

zlabel

plot · scripts/plot/appearance/zlabel.m

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

Set the text label of the z axis.

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 "zlabel"; the same object is reused by later calls and its handle is returned.