✊🏿 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: https://plotly.com/matlab/getting-started
# Find your api_key here: https://plotly.com/settings/api

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;