zticklabels
Set or query z-axis tick labels
Syntax
Description
zticklabels(
sets the
z-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 z-axis tick values and tick labels no
longer update automatically based on changes to the axes.
returns
the z-axis tick labels for the current axes.zl
= zticklabels
zticklabels('auto')
sets an automatic mode,
enabling the axes to determine the z-axis tick
labels. Use this option if you set the labels and then want to set
them back to the default values.
zticklabels('manual')
sets a manual mode,
freezing the z-axis tick labels at the current
values.
returns
the current value of the z-axis tick labels mode,
which is either m
= zticklabels('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 zticklabels
function sets and queries
several axes properties related to the z-axis
tick labels.
ZTickLabel
— Property that stores the text for the z-axis tick labels.ZTickLabelMode
— Property that stores the z-axis tick label mode. When you set the z-axis tick labels usingzticklabels
, this property changes to'manual'
.ZTickMode
— Property that stores the z-axis tick value mode. When you set the z-axis tick labels usingzticklabels
, this property changes to'manual'
.
Version History
Introduced in R2016b