rticks
Set or get radial tick values for polar axes.
📝Syntax
ticks = rticks()
rticks(values)
rticks('auto')
rticks('manual')
m = rticks('mode')
rticks(ax, ...)
📥Input Arguments
Parameter Description
values Numeric vector of radial tick values.
'auto' Enable automatic radial tick selection and automatic radial tick labels.
'manual' Keep current radial tick values.
'mode' Return the radial tick mode.
ax Target polar axes.
📤Output Arguments
Parameter Description
ticks Numeric row vector of radial tick values.
m 'auto' or 'manual'.
📄Description

rticks gets or sets radial tick values on the current polar axes.

Setting numeric tick values switches radial tick mode to manual. If radial tick labels are in automatic mode, labels are regenerated from the new values.

💡Examples
Set radial ticks.
polarplot(linspace(0, 2*pi, 80), linspace(0, 4, 80));
rticks([0 1 2 3 4]);
ticks = rticks()
🔗See Also
rticklabelsrlimthetaticks
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub