Show Sidebar Hide Sidebar

Adding Zoom Effects in MATLAB

How to bind callback functions to zoom events in JavaScript charts.

# Learn about API authentication here: https://plot.ly/matlab/getting-started
# Find your api_key here: https://plot.ly/settings/api

x = 80 * randn(1, 30);
y = 80 * randn(size(x));
r = randi(1500, size(x));
c = randi(10, size(x));

fig = figure;

scatter(x, y, r, c, 'filled', 'MarkerEdgeColor', 'k')

%--PLOTLY--%

% strip = false => preserve MATLAB style!

response = fig2plotly(fig, 'filename', 'matlab-bubble-chart',  'strip', false);
plotly_url = response.url;
Still need help?
Contact Us

For guaranteed 24 hour response turnarounds, upgrade to a Developer Support Plan.