Skip to content

pcolor() default colors and grid not matching #264

New issue

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

Closed
xarico10 opened this issue Aug 2, 2021 · 1 comment
Closed

pcolor() default colors and grid not matching #264

xarico10 opened this issue Aug 2, 2021 · 1 comment
Assignees
Labels
⭐⭐⭐ multiplier Issues that could close multiple related issues at once

Comments

@xarico10
Copy link
Contributor

xarico10 commented Aug 2, 2021

When using pcolor() to create a pseudocolor plot, default colors and grid isn't matching.

C = hadamard(20);
pcolor(C)


fig2plotly(gcf, 'offline', false);

Expected and generated (https://chart-studio.plotly.com/~xarico10/793/#/) plots:
Captura de Pantalla 2021-08-02 a la(s) 11 27 47 a  m
Captura de Pantalla 2021-08-02 a la(s) 11 28 11 a  m

The colors aren't the same, the grid isn't printed and the plot starts at (1,1) coordinate, when it should start at (0,0).

Examples on using pcolor() can be found on:
https://www.mathworks.com/help/matlab/ref/pcolor.html#responsive_offcanvas

@xarico10 xarico10 added the ⭐⭐⭐ multiplier Issues that could close multiple related issues at once label Aug 2, 2021
@xarico10 xarico10 changed the title pclor() default colors and grid not matching pcolor() default colors and grid not matching Aug 2, 2021
@igoraboim igoraboim self-assigned this Aug 2, 2021
gilbertogalvis pushed a commit that referenced this issue Aug 14, 2021
@gilbertogalvis gilbertogalvis self-assigned this Aug 14, 2021
@gilbertogalvis
Copy link
Contributor

PR #342 fix this issue #264. This issue is related to pcolor similar to issues #263 and #265. Then working with this issue I was careful to ensure that modifications works for all this issues (#264, #263 and for #265)

to test it please use following code:

C = hadamard(20);
pcolor(C)

fig2plotly(gcf, 'offline', 1, 'TreatAs', 'pcolor');

results looks as follow

Screen Shot 2021-08-14 at 10 23 57 AM

Screen Shot 2021-08-14 at 10 24 21 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⭐⭐⭐ multiplier Issues that could close multiple related issues at once
Projects
None yet
Development

No branches or pull requests

3 participants