Skip to content

Issue263 fixed #341

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

Merged
merged 3 commits into from
Aug 17, 2021
Merged

Issue263 fixed #341

merged 3 commits into from
Aug 17, 2021

Conversation

gilbertogalvis
Copy link
Contributor

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

codes to test:

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

fig2plotly(gcf, 'offline', 0, 'TreatAs', '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', 0, 'TreatAs', 'pcolor');

Here the results

Screen Shot 2021-08-14 at 9 35 07 AM

Screen Shot 2021-08-14 at 9 35 26 AM

Screen Shot 2021-08-14 at 9 36 12 AM

Screen Shot 2021-08-14 at 9 36 35 AM

@gilbertogalvis
Copy link
Contributor Author

Also, as suggested @VolKa79 in the review of PR #340. I have removed the x and y axis titles

@gilbertogalvis gilbertogalvis merged commit f6f1562 into master Aug 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants