Skip to content

Grid transformations with pcolor() #265

Closed
@xarico10

Description

@xarico10

When using pcolor() and trying to use defined non-regular grids, an empty figure is printed.

[X,Y] = meshgrid(-3:6/17:3);
XX = 2*X.*Y;
YY = X.^2 - Y.^2;
colorscale = [1:18; 18:-1:1];
C = repmat(colorscale,9,1);
pcolor(XX,YY,C);

fig2plotly(gcf, 'offline', false);

Expected and generated (https://chart-studio.plotly.com/~xarico10/797/#/) plots:
Captura de Pantalla 2021-08-02 a la(s) 11 34 15 a  m
Captura de Pantalla 2021-08-02 a la(s) 11 34 25 a  m

Examples on using pcolor() can be found on:
https://www.mathworks.com/help/matlab/ref/pcolor.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