get — Inspect figure, axes, and plot-object properties through RunMat’s graphics handles and MATLAB-style get workflows.
get reads properties from plotting handles such as figures, axes, titles, legends, and plot objects. In RunMat, it is the public read path for the expanded plotting object system: line handles, image handles, histogram handles, contour handles, and other plotting objects can all be queried through a single MATLAB-style property interface.
How get works in RunMat
get(h)returns a struct of known properties for the handleh.get(h, 'PropertyName')returns a single property value.- The supported property set depends on the handle family: figure, axes, text, legend, and child plot objects each expose different fields.
- RunMat uses
getto surface subplot-local state such as limits, scale modes, legend visibility, and text metadata. - The handle families covered by
getnow extend across the major plot families rather than just the most recently added plotting builtins.
Examples
Inspect the full property struct for a line handle
h = plot(1:5, [1 4 2 5 3]);
props = get(h);Read an axes-local property
ax = subplot(1, 2, 2);
semilogx(logspace(0, 2, 50), logspace(0, 2, 50));
get(ax, 'XScale')Expected output:
ans =
'log'Inspect a legend handle after creation
plot(1:5, 1:5);
lg = legend('series');
get(lg, 'Orientation')Related functions to explore
These functions work well alongside get. Each page has runnable examples you can try in the browser.
Open-source implementation
Unlike proprietary runtimes, every RunMat function is open-source. Read exactly how get works, line by line, in Rust.
- View get.rs on GitHub
- Learn how the 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 — faster, on any GPU, with no license required.
- Simulations that took hours now take minutes. RunMat automatically optimizes your math for GPU execution on Apple, Nvidia, and AMD hardware. No code changes needed.
- Start running code in seconds. Open the browser sandbox or download a single binary. No license server, no IT ticket, no setup.
- A full development environment. GPU-accelerated 2D and 3D plotting, automatic versioning on every save, and a browser IDE you can share with a link.