Closed
Description
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:
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
Assignees
Labels
No labels