Skip to content

waterfall() not working correctly  #268

Open
@xarico10

Description

@xarico10

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions