Documentation

rtickangle

Rotater-axis tick labels

Syntax

rtickangle(angle)
rtickangle(ax,angle)
ang = rtickangle
ang = rtickangle(pax)

Description

example

rtickangle(angle)rotates ther-axis tick labels for the current axes to the specified angle in degrees, where0is horizontal. Specify a positive value for counterclockwise rotation or a negative value for clockwise rotation.

example

rtickangle(ax,angle)rotates the tick labels for the axes specified byaxinstead of the current axes.

ang= rtickanglereturns the rotation angle for ther-axis tick labels of the current axes as a scalar value in degrees. Positive values indicate counterclockwise rotation. Negative values indicate clockwise rotation.

example

ang= rtickangle(pax)uses the polar axes specified bypaxinstead of the current axes.

Examples

collapse all

Create a polar plot and rotate ther-axis tick labels 45 degrees counterclockwise.

polarplot(1:100) rtickangle(45)

Create a polar plot and assign the polar axes object to the variablepax. Then, rotate ther-axis tick labels for the polar axes. Ensure thatrtickangleaffectspaxby specifying the polar axes object as the first input argument.

polarplot(1:100) pax = gca; rtickangle(pax,45)

Create a polar plot. Then, query the rotation angle for ther-axis tick labels. By default, the labels are not rotated.

polarplot(1:100)

ang = rtickangle
ang = 0

Input Arguments

collapse all

的旋转tick labels, specified as a scalar value in degrees, where 0 is horizontal.

Example:rtickangle(90)

One or more polar axes, specified as a single object or a vector of objects. If you do not specify the polar axes, thenrtickangleuses the current axes.

Algorithms

Thertickanglefunction sets and queries theRTickLabelRotationproperty of the axes object.

Introduced in R2016b

Was this topic helpful?