RunMat
  • Pricing
RunMat
GitHub
GitHub
DownloadSign InTry in Browser
DesktopRuntimeServer
RunMat

Run math blazing fast

GitHubX (Twitter)LinkedIn

Company

  • About
  • Pricing
  • Contact

Explore

  • RunMat for academia
  • RunMat vs MATLAB Online
  • Benchmarks

Get product updates and release notes from the RunMat team.

© 2026 Dystr · Made withfor the scientific community.

RunMat™ is a registered trademark of Dystr, Inc. MATLAB® is a registered trademark of The MathWorks, Inc. RunMat is not affiliated with, endorsed by, or sponsored by The MathWorks, Inc.

LicensePrivacy
/
See all docs
Builtin Reference
    • addpoints
    • ancestor
    • animatedline
    • area
    • axes
    • axis
    • bar
    • barh
    • box
    • caxis
    • cla
    • clf
    • clim
    • colorbar
    • colorcube
    • colormap
    • colororder
    • contour
    • contour3
    • contourf
    • copyobj
    • daspect
    • datacursormode
    • dataTipTextRow
    • errorbar
    • fcontour
    • figure
    • fill
    • fill3
    • findobj
    • fsurf
    • gca
    • gcf
    • get
    • gobjects
    • grid
    • groot
    • heatmap
    • hgload
    • hgsave
    • hidden
    • hist
    • histogram
    • histogram2
    • hold
    • image
    • imagesc
    • imshow
    • legend
    • line
    • linkaxes
    • loglog
    • mesh
    • meshc
    • openfig
    • opengl
    • pan
    • parula
    • patch
    • pie
    • plot
    • plot3
    • plotmatrix
    • plotyy
    • polarhistogram
    • polarplot
    • polarscatter
    • print
    • quiver
    • quiver3
    • ribbon
    • saveas
    • savefig
    • scatter
    • scatter3
    • semilogx
    • semilogy
    • set
    • sgtitle
    • shading
    • sphere
    • stackedplot
    • stairs
    • stem
    • subplot
    • subtitle
    • suptitle
    • surf
    • surfc
    • text
    • textscatter
    • textscatter3
    • title
    • triplot
    • view
    • waitbar
    • wordcloud
    • xlabel
    • xlim
    • xline
    • xscale
    • xtickangle
    • xtickformat
    • xticklabels
    • xticks
    • ylabel
    • ylim
    • yline
    • yscale
    • ytickangle
    • ytickformat
    • yticklabels
    • yticks
    • zlabel
    • zlim
    • zoom

xtickangle — Query or set X-axis tick label rotation.

xtickangle returns or updates the X-axis tick label rotation in degrees for the current axes or specified axes handles.

Syntax

angle = xtickangle()
xtickangle(angle)
angle = xtickangle(ax)
xtickangle(ax, angle)

Inputs

NameTypeRequiredDefaultDescription
angleNumericScalarYes—X-axis tick label rotation in degrees.
axAxesHandleYes—Scalar target axes handle.
axAxesHandleYes—Target axes handle or array of axes handles.

Returns

NameTypeDescription
angleNumericScalarCurrent X-axis tick label rotation in degrees.

Errors

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

How xtickangle works

  • xtickangle() returns the current X tick label rotation, defaulting to 0.
  • xtickangle(angle) sets the current axes X tick label rotation in degrees. Integer scalars from any native integer class are accepted.
  • xtickangle(ax) queries a scalar axes handle without changing the current axes.
  • xtickangle(ax, angle) accepts a scalar axes handle or numeric array of axes handles and sets each target. RunMat mode additionally accepts typed-integer aliases for encoded axes handles.
  • The function shares state with XTickLabelRotation on axes and TickLabelRotation on the X-axis ruler returned by get(ax, 'XAxis').

GPU memory and residency

xtickangle only reads and writes axes metadata. It does not inspect, gather, or transform GPU-resident plot data.

Examples

Rotate X tick labels

plot(1:3);
xtickangle(45);
xtickangle()

Expected output:

ans = 45

Target a specific axes

ax = subplot(1, 2, 1);
xtickangle(ax, -30);

Using xtickangle with coding agents

Open a RunMat example with live inputs, then ask the agent to explain how xtickangle changes the result.

Run a small xtickangle 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

3D & Surface

contour · contour3 · contourf · mesh · meshc · plot3 · quiver · scatter3 · surf · surfc

Images

image · imagesc · imshow

Axes & Layout

axis · box · grid · sgtitle · subplot · title · view · zlabel

Appearance

colorbar · colormap · legend · shading

Handle Access

gca · gcf · get · set

Other

addpoints · ancestor · animatedline · axes · barh · caxis · cla · clf · clim · colorcube · colororder · copyobj · daspect · datacursormode · dataTipTextRow · fcontour · figure · fill · 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 · text · textscatter · textscatter3 · triplot · waitbar · wordcloud · xlabel · xlim · xline · xscale · xtickformat · xticklabels · xticks · ylabel · ylim · yline · yscale · ytickangle · ytickformat · yticklabels · yticks · zlim · zoom

Open-source implementation

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

  • View the source for xtickangle 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.

Getting started · Benchmarks · Pricing

Download RunMat

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

Download RunMatOpen Sandbox
On this page
  • Syntax
  • Inputs
  • Returns
  • Errors
  • How xtickangle works
  • GPU memory and residency
  • Examples
  • Rotate X tick labels
  • Target a specific axes
  • Using xtickangle with coding agents
  • Related Plotting functions
  • 2D Charts
  • 3D & Surface
  • Images
  • Axes & Layout
  • Appearance
  • Handle Access
  • Other
  • Open-source implementation
  • About RunMat