Skip to content

surfc() not working properly #259

Closed
Closed
@xarico10

Description

@xarico10

When using surfc() to create a three-dimensional surface plot with a contour plot underneath, the contour plot isn't correctly plotted (it should be underneath the 3-D surface on its same grid, not all over the place with independent grid and axes).

[X,Y] = meshgrid(1:0.5:10,1:20);
Z = sin(X) + cos(Y);
surfc(X,Y,Z)

fig2plotly(gcf, 'offline', false);

Expected and generated (https://chart-studio.plotly.com/~xarico10/755/#/) plots:
Captura de Pantalla 2021-08-02 a la(s) 10 40 08 a  m

Captura de Pantalla 2021-08-02 a la(s) 10 39 12 a  m

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

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