Skip to content
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

YIOrRd heatmap restyle defaults back to RdBU #4613

Closed
mmebsout opened this issue Mar 3, 2020 · 5 comments
Closed

YIOrRd heatmap restyle defaults back to RdBU #4613

mmebsout opened this issue Mar 3, 2020 · 5 comments

Comments

@mmebsout
Copy link

mmebsout commented Mar 3, 2020

I am trying to switch the colorscale of my heatmap by using the restyle function.
It works pretty well with colorscales like "Greens" or "Jet" but when I use "YIOrRd" or "YIGnBu" it defaults back to "RdBU".

see : https://codepen.io/mmebsout/pen/KKpvvOR

It looks like Issue #3829 might be related to this.
I couldn't fix my problem using autoscale:true or false. Sorry if I have misunderstood something but I'd be delighted to be corrected. Thanks in advance for your time.

@alexcjohnson
Copy link
Collaborator

You have an uppercase I in "YIOrRd" or "YIGnBu" - should be a lowercase L for yellow: "YlOrRd" or "YlGnBu"

@alexcjohnson
Copy link
Collaborator

Ah I see, our docs have the uppercase I as well! Will get this fixed...

@alexcjohnson
Copy link
Collaborator

We at one point had this typo in the colorscales, and there's a "cleaning" step that ensures the wrong spellings get fixed when a new figure is supplied, but that cleaning doesn't happen on restyle or relayout

@mmebsout
Copy link
Author

mmebsout commented Mar 4, 2020

Thank you very much :)

@alexcjohnson
Copy link
Collaborator

Thanks for reporting @mmebsout - closing, will be addressed by plotly/graphing-library-docs#14

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

No branches or pull requests

2 participants