Skip to content

Color argument not working on surface plots #258

Closed
@xarico10

Description

@xarico10

When using the input argument C to specify a color map for a surface plot, the color isn't being changed.

[X,Y] = meshgrid(1:0.5:10,1:20);
Z = sin(X) + cos(Y);
C = X.*Y;
surf(X,Y,Z,C)

fig2plotly(gcf, 'offline', false);

Expected and generated (https://chart-studio.plotly.com/~xarico10/753/#/) plots:
Captura de Pantalla 2021-07-31 a la(s) 7 03 08 p  m
Captura de Pantalla 2021-07-31 a la(s) 7 03 39 p  m

Examples on using C input argument can be found on:
https://www.mathworks.com/help/matlab/ref/surf.html#bvgs7ws-1

Metadata

Metadata

Labels

⭐⭐⭐ multiplierIssues that could close multiple related issues at once

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions