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:
# Find your api_key here:

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')


% 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.