Main Content
xtickangle
Rotate x-axis tick labels
Description
xtickangle(
rotates
the x-axis tick labels for the current axes to
the specified angle in degrees, where angle
)0
is horizontal.
Specify a positive value for counterclockwise rotation or a negative
value for clockwise rotation.
returns
the rotation angle for the x-axis tick labels
of the current axes as a scalar value in degrees. Positive values
indicate counterclockwise rotation. Negative values indicate clockwise
rotation.ang
= xtickangle
uses
the axes specified by ang
= xtickangle(ax
)ax
instead of the current
axes.
Examples
Input Arguments
Algorithms
The xtickangle
function sets and queries
the XTickLabelRotation
property
of the Axes
object.
Version History
Introduced in R2016b