xtickangle(angle)
angle = xtickangle()
xtickangle(ax, ...)
| Parameter | Description |
|---|---|
| angle | Rotation angle in degrees, specified as a scalar numeric value. |
| ax | Target axes. Default is the current axes. |
| Parameter | Description |
|---|---|
| angle | Current rotation angle in degrees. |
xtickangle rotates the x-axis tick labels of the current axes by the given angle.
A positive angle rotates the labels counterclockwise; a negative angle rotates them clockwise.
bar([10 20 30 41]);
xticklabels({'January','February','March','April'});
xtickangle(45);
| Version | Description |
|---|---|
| 2.0.0 | initial version |