zticklabels
Set or get z-axis tick labels.
📝Syntax
labels = zticklabels()
zticklabels(labels)
zticklabels('auto')
zticklabels('manual')
m = zticklabels('mode')
zticklabels(ax, ...)
📥Input Arguments
Parameter Description
labels Cell array of character vectors or string array of z-axis tick labels.
'auto' Enable automatic z-tick labels.
'manual' Freeze the current z-tick labels.
'mode' Return the z-tick label mode.
ax Target axes. Default is the current axes.
📤Output Arguments
Parameter Description
labels Cell array of character vectors of z-axis tick labels.
m 'auto' or 'manual'.
📄Description

zticklabels gets or sets the tick labels along the z-axis of the current axes.

Specifying labels switches the z-tick label mode to manual.

💡Examples
Set z-axis tick labels.
t = linspace(0, 10, 50);
plot3(sin(t), cos(t), t);
zticks([0 5 10]);
zticklabels({'low','mid','high'});
labels = zticklabels()
🔗See Also
zticksztickangleyticklabels
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub