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

v4 colorscale updates #1647

Merged
merged 8 commits into from
Jul 1, 2019
Merged

v4 colorscale updates #1647

merged 8 commits into from
Jul 1, 2019

Conversation

jonmmease
Copy link
Contributor

@jonmmease jonmmease commented Jun 30, 2019

This PR makes some updates to colorscale handling to smooth over the distinction between specifying colorscales to plotly express functions and to graph objects.

  1. Update the colorscale validator to accept lists of colors, and automatically construct a plotly.js colorscale as a list of pairs with uniformly spaced colors. Previously this was the only way that plotly express accepted custom color scales and it was not supported by graph object colorscales.
  2. Update the colorscale validator to accept the name of colorscales from the sequential, diverging, and cyclical modules in the plotly.colors package.
  3. Add definitions for the remaining plotly.js built-in color scales to plotly.colors. Now the colorscale is never left as a string, it is always coerced into a list-of-pairs color scale.
  4. Update the plotly.express functions to use the colorscale validator, thus accepting all of the same colorscale forms as the graph objects.
  5. Added the 'rebeccapurple' named css color.
  6. Change default colorscale for the annotated heatmap figure factory to Plasma
  7. Rename Plotly sequential colorscale to Plotly3 since this was only
    the theme default for version 3

@nicolaskruchten

Support strings of named colors from plotly.colors as colorscale

Add all legacy plotly.js colorscale definitions to plotly.colors and
always coerce color string to colorscale definitions.

Rename Plotly sequential colorscale to Plotly3 since this was only
the theme default for version 3
@jonmmease jonmmease merged commit de02fca into v4_integration Jul 1, 2019
@nicolaskruchten nicolaskruchten deleted the colorscale_updates branch June 19, 2020 16:15
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.

None yet

1 participant