ztickangle
Rotate z-axis tick labels.
📝Syntax
ztickangle(angle)
angle = ztickangle()
ztickangle(ax, ...)
📥Input Arguments
Parameter Description
angle Rotation angle in degrees, specified as a scalar numeric value.
ax Target axes. Default is the current axes.
📤Output Arguments
Parameter Description
angle Current rotation angle in degrees.
📄Description

ztickangle rotates the z-axis tick labels of the current axes by the given angle.

A positive angle rotates the labels counterclockwise; a negative angle rotates them clockwise.

💡Examples
Rotate z-axis tick labels by 45 degrees.
t = linspace(0, 10, 50);
plot3(sin(t), cos(t), t);
ztickangle(45);
🔗See Also
ztickszticklabelsxtickangle
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub