ytickangle — Query or set Y-axis tick label rotation.
ytickangle returns or updates the Y-axis tick label rotation in degrees for the current axes or specified axes handles.
Syntax
angle = ytickangle()
ytickangle(angle)
angle = ytickangle(ax)
ytickangle(ax, angle)Inputs
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
angle | NumericScalar | Yes | — | Y-axis tick label rotation in degrees. |
ax | AxesHandle | Yes | — | Scalar target axes handle. |
ax | AxesHandle | Yes | — | Target axes handle or array of axes handles. |
Returns
| Name | Type | Description |
|---|---|---|
angle | NumericScalar | Current Y-axis tick label rotation in degrees. |
Errors
| Identifier | When | Message |
|---|---|---|
RunMat:ytickangle:InvalidArgument | Argument count, angle value, or axes handle is invalid. | ytickangle: invalid argument |
RunMat:ytickangle:Internal | Internal plotting state update fails. | ytickangle: internal operation failed |
How ytickangle works
ytickangle()returns the current Y tick label rotation, defaulting to0.ytickangle(angle)sets the current axes Y tick label rotation in degrees.ytickangle(ax)queries a scalar axes handle without changing the current axes.ytickangle(ax, angle)accepts a scalar axes handle or numeric array of axes handles and sets each target.- The function shares state with
YTickLabelRotationon axes andTickLabelRotationon the Y-axis ruler returned byget(ax, 'YAxis').
GPU memory and residency
ytickangle only reads and writes axes metadata. It does not inspect, gather, or transform GPU-resident plot data.
Examples
Rotate Y tick labels
plot(1:3);
ytickangle(25);
ytickangle()Expected output:
ans = 25Target a specific axes
ax = subplot(1, 2, 2);
ytickangle(ax, -45);Using ytickangle with coding agents
Open a RunMat example with live inputs, then ask the agent to explain how ytickangle changes the result.
Run a small ytickangle example, explain the result, then change one input and compare the output.
Related Plotting functions
2D Charts
area · bar · errorbar · heatmap · hist · histogram · loglog · pie · plot · scatter · semilogx · semilogy · stairs · stem
Other
addpoints · ancestor · animatedline · axes · barh · cla · clf · colorcube · colororder · copyobj · daspect · datacursormode · dataTipTextRow · fcontour · figure · fill3 · findobj · fsurf · gobjects · groot · hgload · hgsave · hidden · histogram2 · hold · line · linkaxes · openfig · opengl · pan · parula · patch · plotmatrix · plotyy · polarhistogram · polarplot · polarscatter · print · quiver3 · ribbon · saveas · savefig · sphere · stackedplot · subtitle · suptitle · textscatter · textscatter3 · triplot · waitbar · wordcloud · xline · xscale · xtickangle · xtickformat · xticklabels · xticks · yline · yscale · ytickformat · yticklabels · yticks · zoom
Open-source implementation
Unlike proprietary runtimes, every RunMat function is open-source. Read exactly how ytickangle is executed, line by line, in Rust.
- View the source for ytickangle in Rust on GitHub
- Learn how the RunMat runtime works
- Found a bug? Open an issue with a minimal reproduction.
About RunMat
RunMat is an open-source runtime that executes MATLAB-syntax code blazing on any GPU. It is licensed under the Apache 2.0 license.
- RunMat automatically optimizes your math for GPU execution on Apple, Nvidia, and AMD hardware. No code changes needed. Simulations that took hours now take minutes.
- Start running code in seconds. RunMat runs in the browser, on the desktop, or from the CLI. No license server, no IT ticket.