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

Adding Sliders to Charts in MATLAB®

How to add sliders to Python charts with JavaScript


x = linspace(datenum(2009,01,01),datenum(2010,01,01),30);
y = rand(1,30); 
plotlydate = convertDate(x); 
plot(plotlydate,y,'-.ob'); 
plotlyfig = fig2plotly(gcf,'filename','MATLAB/date-example'); 
plotlyfig.layout.xaxis1.type = 'date'; 
plotly(plotlyfig);