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;
surf(Z);

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;
contour(X,Y,Z,20);
fig2plotly();
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.
getplotlyoffline('https://cdn.plot.ly/plotly-latest.min.js')
X = linspace(0,2*pi,50)';
Y = [cos(X), 0.5*sin(X)];
stem(X,Y)
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

Dashboards
Dashboards
plot | Line Charts
plot | Line Charts
Scatter
Scatter
Bar Charts
Bar Charts
Time Series
Time Series
Bubble Charts
Bubble Charts
Filled Area Plots
Filled Area Plots
Multiple Chart Types
Multiple Chart Types
Stem Plot
Stem Plot
Sparse Matrix Visualizations
Sparse Matrix Visualizations
Ternary Plots
Ternary Plots

Statistical Charts

Error Bars
Error Bars
Box Plots
Box Plots
Histograms
Histograms
2D Histograms
2D Histograms

Scientific Charts

Heatmaps
Heatmaps
Contour Plots
Contour Plots
Polar Charts
Polar Charts
Log Plots
Log Plots
Network Graphs
Network Graphs
Streamline Plots
Streamline Plots
Treemaps
Treemaps

3D Charts

3D Line Plots
3D Line Plots
3D Scatter Plots
3D Scatter Plots
3D Surface Plots
3D Surface Plots
Ribbon Plots
Ribbon Plots

Streaming

Streaming
Real-Time Streaming

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.

Click Events
Click Events
Hover Events
Hover Events
Button Events
Button Events
Adding Zoom Effects
Adding Zoom Effects
Adding Sliders to Charts
Adding Sliders to Charts
Dropdown Events
Dropdown Events

Layout Options


File Settings


Tutorial


Image Export & Retrieving Plots


Using Offline

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