We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using pcolor() and trying to use defined non-regular grids, an empty figure is printed.
pcolor()
[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:
Examples on using pcolor() can be found on: https://www.mathworks.com/help/matlab/ref/pcolor.html#responsive_offcanvas
The text was updated successfully, but these errors were encountered:
fix issue #265
9dcd668
PR #340 fix this issue
To test it please use the code
[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', 1, 'TreatAs', 'pcolor');
As you can see it is necessary to set 'TreatAs' Plotly Option to 'pcolor'
'TreatAs' Plotly Option
'pcolor'
results looks as follow
Sorry, something went wrong.
gilbertogalvis
No branches or pull requests
When using
pcolor()
and trying to use defined non-regular grids, an empty figure is printed.Expected and generated (https://chart-studio.plotly.com/~xarico10/797/#/) plots:


Examples on using
pcolor()
can be found on:https://www.mathworks.com/help/matlab/ref/pcolor.html#responsive_offcanvas
The text was updated successfully, but these errors were encountered: