ticks = yticks()
yticks(values)
yticks('auto')
yticks('manual')
m = yticks('mode')
yticks(ax, ...)
| Parameter | Description |
|---|---|
| values | Numeric vector of y-axis tick values. |
| 'auto' | Enable automatic y-tick selection. |
| 'manual' | Freeze the current y-tick values. |
| 'mode' | Return the y-tick mode. |
| ax | Target axes. Default is the current axes. |
| Parameter | Description |
|---|---|
| ticks | Numeric row vector of y-axis tick values. |
| m | 'auto' or 'manual'. |
yticks gets or sets the tick values along the y-axis of the current axes.
Specifying tick values switches the y-tick mode to manual.
x = linspace(0, 10, 50);
plot(x, sin(x));
yticks(-1:0.5:1);
ticks = yticks()
| Version | Description |
|---|---|
| 2.0.0 | initial version |