rticklabels
Set or query r-axis tick labels
Syntax
Description
rticklabels(
sets the
r-axis tick labels for the current axes. Specify
labels
)labels
as a string array or a cell array of character
vectors; for example, {'January','February','March'}
. If you
specify the labels, then the r-axis tick values and tick
labels no longer update automatically based on changes to the axes.
returns
the r-axis tick labels for the current axes.rl
= rticklabels
rticklabels('auto')
sets an automatic mode,
enabling the axes to determine the r-axis tick
labels. Use this option if you set the labels and then want to set
them back to the default values.
rticklabels('manual')
sets a manual mode,
freezing the r-axis tick labels at the current
values.
returns
the current value of the r-axis tick labels mode,
which is either m
= rticklabels('mode')'auto'
or 'manual'
.
By default, the mode is automatic unless you specify the tick labels
or set the mode to manual.
Examples
Input Arguments
Output Arguments
More About
Algorithms
The rticklabels
function sets and queries
several polar axes properties related to the r-axis
tick labels.
RTickLabel
— Property that stores the text for the r-axis tick labels.RTickLabelMode
— Property that stores the r-axis tick label mode. When you set the r-axis tick labels usingrticklabels
, this property changes to'manual'
.RTickMode
— Property that stores the r-axis tick value mode. When you set the r-axis tick labels usingrticklabels
, this property changes to'manual'
.
Version History
Introduced in R2016b