rticks
Set or query r-axis tick values
Description
rticks(
sets
the r-axis tick values, which are the locations along
the r-axis where the tick marks and grid lines
appear. Specify ticks
)ticks
as a vector of increasing
values; for example, [0 2 4 6]
. This command affects
the current axes.
returns
the current r-axis tick values as a vector.rt
= rticks
rticks('auto')
sets an automatic mode,
enabling the axes to determine the r-axis tick
values. Use this option if you change the tick values and then want
to set them back to the default values.
rticks('manual')
sets a manual mode, freezing
the r-axis tick values at the current values.
Use this option if you want to retain the current tick values when
resizing the axes or adding new data to the axes.
returns
the current r-axis tick labels mode, which is
either m
= rticks('mode')'auto'
or 'manual'
. By
default, the mode is automatic unless you specify tick values or change
the mode to manual.
Examples
Input Arguments
Output Arguments
More About
Algorithms
The rticks
function sets and queries several
axes properties related to the r-axis tick values.
Version History
Introduced in R2016b