Skip to content

Wrong colorscales YIOrRd and YIGnBu #14

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
alexcjohnson opened this issue Mar 3, 2020 · 0 comments · Fixed by #68
Closed

Wrong colorscales YIOrRd and YIGnBu #14

alexcjohnson opened this issue Mar 3, 2020 · 0 comments · Fixed by #68
Assignees
Labels
bug Something isn't working

Comments

@alexcjohnson
Copy link
Collaborator

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

At some point plotly.js had these typos in its built-in colorscales. We fixed that, and included a backward-compatibility fix that converts from I to l when used with Plotly.newPlot or Plotly.react, but it doesn't work with Plotly.restyle or Plotly.relayout (which I believe still get some use from plotly.py when editing an existing figure)

We should update the docs to only use the correct spelling.
Originally reported in plotly/plotly.js#4613

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants