Skip to content

pcolor(X,Y,C) not working correctly  #263

Closed
@xarico10

Description

@xarico10

When using pcolor(X,Y,C) specifiy the x- and y-coordinates for the vertices of values in matrix C, a completely different plot is being created from expected.

X = [1 2 3; 1 2 3; 1 2 3];
Y = X';
C = [3 4 5; 1 2 5; 5 5 5];
pcolor(X,Y,C)

fig2plotly(gcf, 'offline', false);

Expected and generated (https://chart-studio.plotly.com/~xarico10/789/#/) plots:
Captura de Pantalla 2021-08-02 a la(s) 11 20 17 a  m
Captura de Pantalla 2021-08-02 a la(s) 11 20 41 a  m

Examples on using pcolor(X,Y,C) can be found on:
https://www.mathworks.com/help/matlab/ref/pcolor.html#mw_83e8289f-c7db-46ea-b8b5-7899343d24e1

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