rtickangle

Sets or queries the rotation of the radial tick labels of polar axes.

Category: Graphics > 2-D and 3-D Plots

Syntax

rtickangle(angle)

Rotates the radial tick labels to angle degrees.

a = rtickangle

Returns the current angle.

Description

Changes the RTickLabelRotation property of the current polar axes. Rotating the labels can keep them clear of a dense plot or of the curve itself.

Input arguments

angle
Rotation in degrees, 0 by default.

Output arguments

a
Current rotation in degrees.

Example

Rotate the labels

polarplot(1:3, 1:3)
rtickangle(45)
rtickangle
Output
ans = 45

See also

rticks rticklabels rtickformat rlim