labels = zticklabels()
zticklabels(labels)
zticklabels('auto')
zticklabels('manual')
m = zticklabels('mode')
zticklabels(ax, ...)
| Parameter | Description |
|---|---|
| labels | Cell array of character vectors or string array of z-axis tick labels. |
| 'auto' | Enable automatic z-tick labels. |
| 'manual' | Freeze the current z-tick labels. |
| 'mode' | Return the z-tick label mode. |
| ax | Target axes. Default is the current axes. |
| Parameter | Description |
|---|---|
| labels | Cell array of character vectors of z-axis tick labels. |
| m | 'auto' or 'manual'. |
zticklabels gets or sets the tick labels along the z-axis of the current axes.
Specifying labels switches the z-tick label mode to manual.
t = linspace(0, 10, 50);
plot3(sin(t), cos(t), t);
zticks([0 5 10]);
zticklabels({'low','mid','high'});
labels = zticklabels()
| Version | Description |
|---|---|
| 2.0.0 | initial version |