Plotly for Matlab is now entirely open source, free, and self-hosted
Learn more about why we've open sourced

MATLAB Online Graphing Toolbox

by plotly

Plotly brings interactive, online graphing to your MATLAB console.
[X,Y] = meshgrid(-8:.5:8);
R = sqrt(X.^2 + Y.^2) + eps;
Z = sin(R)./R;

fig2plotly(); % generate a web-based version of the MATLAB figure
Plotly's MATLAB graphs are interactive in the web browser. Hover over values, scroll to zoom, click-and-drag to rotate and pan. Since Plotly graphs are built with native web technologies javascript, SVG, d3.js, and webgl, no plugins or downloads are required.
[X,Y,Z] = peaks;
MATLAB Online graphs are created with HTML and Javascript. You can save and share your MATLAB Online figures with Plotly's cloud service or you can generate and serve this HTML and JavaScript with the self-hosted desktop MATLAB Online toolbox.
X = linspace(0,2*pi,50)';
Y = [cos(X), 0.5*sin(X)];
fig2plotly(gcf, 'offline', true);

self-hosted matlab online

Use Plotly with MATLAB to share your figures with non-MATLAB users, to create web-based MATLAB dashboards, as the visualization toolbox in MATLAB web applications, or just for publication quality vector image export.

Documentation Examples

Basic Charts

3D Charts

Multiple Axes, Subplots, and Insets


Add Custom Controls with JavaScript

All Plotly charts have click, hover and zoom events exposed to add custom controls with Plotly's JavaScript postMessage API.

Layout Options

File Settings


Image Export & Retrieving Plots

Using Offline

Plotly is a web-connected service by default, but can also work entirely locally.