ztickangle
Rotates the tick labels of the z-axis.
Category: Graphics > Formatting and Annotation
Syntax
ztickangle(angle)
Rotates the z tick labels by angle degrees.
a = ztickangle
Returns the current rotation.
Description
Rotation helps when long labels overlap. The call sets the ZTickLabelRotation property of the axes and is the z counterpart of xtickangle and ytickangle.
Input arguments
angle- Rotation in degrees, counterclockwise.
Output arguments
a- Current rotation in degrees.
Example
Tilt the z labels
surf(peaks(10))
ztickangle(45)