plotly_matlab icon indicating copy to clipboard operation
plotly_matlab copied to clipboard

docs - subplot surf and mesh

Open danton267 opened this issue 4 years ago • 1 comments

tiledlayout(2,1)

% Top plot
nexttile 
surf(peaks)
colorbar

% Bottom plot
nexttile
mesh(peaks)
colorbar

fig2plotly(gcf);

bottom subplot is not created

danton267 avatar Oct 20 '21 20:10 danton267

t = 0:pi/10:2*pi;
[X,Y,Z] = cylinder(4*cos(t));
subplot(2,2,1); mesh(X); title('X');
subplot(2,2,2); mesh(Y); title('Y');
subplot(2,2,3); mesh(Z); title('Z');
subplot(2,2,4); mesh(X,Y,Z); title('X,Y,Z');

fig2plotly(gcf);

does not work

danton267 avatar Oct 20 '21 23:10 danton267