plotly_matlab icon indicating copy to clipboard operation
plotly_matlab copied to clipboard

waterfall() not working correctly

Open xarico10 opened this issue 5 years ago • 0 comments

When using waterfall() to create a waterfall plot, which is a mesh plot with a partial curtain along the y dimension, a very different plot is generated. The generated plot isn't filled, which makes it very hard to understand.

[X,Y] = meshgrid(-5:.5:5);
Z = Y.*sin(X) - X.*cos(Y);
waterfall(X,Y,Z)

fig2plotly(gcf, 'offline', false);

Expected and generated (https://chart-studio.plotly.com/~xarico10/823/#/) plots: Captura de Pantalla 2021-08-02 a la(s) 12 03 47 p  m Captura de Pantalla 2021-08-02 a la(s) 12 03 56 p  m

Examples on using waterfall() can be found on: https://www.mathworks.com/help/matlab/ref/waterfall.html#responsive_offcanvas

xarico10 avatar Aug 02 '21 17:08 xarico10