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

NameTypeRequiredDefaultDescription
angleNumericScalarYesY-axis tick label rotation in degrees.
axAxesHandleYesScalar target axes handle.
axAxesHandleYesTarget axes handle or array of axes handles.

Returns

NameTypeDescription
angleNumericScalarCurrent Y-axis tick label rotation in degrees.

Errors

IdentifierWhenMessage
RunMat:ytickangle:InvalidArgumentArgument count, angle value, or axes handle is invalid.ytickangle: invalid argument
RunMat:ytickangle:InternalInternal plotting state update fails.ytickangle: internal operation failed

How ytickangle works

  • ytickangle() returns the current Y tick label rotation, defaulting to 0.
  • 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 YTickLabelRotation on axes and TickLabelRotation on the Y-axis ruler returned by get(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 = 25

Target 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.

Open-source implementation

Unlike proprietary runtimes, every RunMat function is open-source. Read exactly how ytickangle is executed, line by line, in Rust.

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.

Getting started · Benchmarks · Pricing

Download RunMat

Download RunMat for full performance, or use RunMat in your browser for zero setup.