Black Lives Matter. Please consider donating to Black Girls Code today.

Click Events in MATLAB®

How to bind callback functions to click events in Python charts with JavaScript.

# Learn about API authentication here:
# Find your api_key here:

fig = figure;
load seamount;
s = 10;
c = linspace(1,10,length(x));


% strip = false => preserve MATLAB<sup>&reg;</sup> style!

response = fig2plotly(fig, 'filename', 'matlab-seamount-scatter', 'strip', false);
plotly_url = response.url;

MATLAB is a registered trademark of The MathWorks, Inc.