RunMat
GitHub

heatmap — Create heatmap charts from matrix data with optional row and column labels.

heatmap creates a heatmap-style chart from numeric matrix data. RunMat supports heatmap(CData) and heatmap(XValues, YValues, CData), returns a heatmap graphics handle, and supports common chart properties such as Title, XLabel, YLabel, ColorbarVisible, and Colormap through get, set, and dot-property assignment.

How heatmap works

  • heatmap(CData) displays matrix values using default row and column labels.
  • heatmap(XValues, YValues, CData) uses text, string-array, cell-array, or numeric labels for the displayed columns and rows.
  • The returned heatmap handle participates in RunMat's plotting property system.
  • Color rendering uses the shared scaled-image and colormap path.

Examples

Create a labeled heatmap chart

cdata = [45 60 32; 43 54 76; 32 94 68; 23 95 58];
xvalues = {'Small','Medium','Large'};
yvalues = {'Green','Red','Blue','Gray'};
h = heatmap(xvalues,yvalues,cdata);
h.Title = 'T-Shirt Orders';
h.XLabel = 'Sizes';
h.YLabel = 'Colors';

Create a heatmap from matrix data

A = magic(5);
h = heatmap(A);
h.Colormap = 'hot';
h.ColorbarVisible = true;

FAQ

Does heatmap support table inputs?

Not yet. RunMat currently supports matrix CData inputs with optional row and column labels. Table-based MATLAB signatures will be added once table values are represented in the runtime.

2D Charts

area · bar · errorbar · hist · histogram · loglog · pie · plot · scatter · semilogx · semilogy · stairs · stem

3D & Surface

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

Images

image · imagesc

Axes & Layout

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

Appearance

colorbar · colormap · legend · shading

Handle Access

get · set

Other

cla · clf · figure · gca · gcf · hold · imshow · title

More plotting resources

Open-source implementation

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

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.

Getting started · Benchmarks · Pricing

Try RunMat for free

Open the sandbox and start running MATLAB code in seconds. No account required.