zticks
Set or get z-axis tick values.
📝Syntax
ticks = zticks()
zticks(values)
zticks('auto')
zticks('manual')
m = zticks('mode')
zticks(ax, ...)
📥Input Arguments
Parameter Description
values Numeric vector of z-axis tick values.
'auto' Enable automatic z-tick selection.
'manual' Freeze the current z-tick values.
'mode' Return the z-tick mode.
ax Target axes. Default is the current axes.
📤Output Arguments
Parameter Description
ticks Numeric row vector of z-axis tick values.
m 'auto' or 'manual'.
📄Description

zticks gets or sets the tick values along the z-axis of the current axes.

Specifying tick values switches the z-tick mode to manual.

💡Examples
Set z-axis ticks.
t = linspace(0, 10, 50);
plot3(sin(t), cos(t), t);
zticks(0:2:10);
ticks = zticks()
🔗See Also
zticklabelsztickanglezlim
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub