rticks
Sets or queries the positions of the radial ticks of polar axes.
Category: Graphics > 2-D and 3-D Plots
Syntax
rticks(values)
Places radial ticks at the positions in the vector values.
t = rticks
Returns the current tick positions.
rticks('auto')
Goes back to automatic tick positions.
Description
It acts on the current polar axes and sets the RTick property. The circles of the polar grid are drawn at these radii.
Input arguments
values- Increasing vector of radii.
Output arguments
t- Vector with the tick positions.
Example
Custom grid circles
polarplot(1:3, 1:3)
rticks([0 1 2 3])
rticks
Output
ans = 1×4
0 1 2 3