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

Change the default color scheme away from Turbo? #527

Open
yurivish opened this issue Aug 30, 2021 · 3 comments
Open

Change the default color scheme away from Turbo? #527

yurivish opened this issue Aug 30, 2021 · 3 comments
Assignees
Labels
question Further information is needed

Comments

@yurivish
Copy link
Contributor

Would it be within the realm of possibility to consider a change to the default Plot color scheme?

I often change the setting away from Turbo just so that I can easily tell apart the high-value colors from the low-value colors. With Turbo my eye jumps all over the place and I never remember what counts as "darker". Here's a plot using Turbo:

image

Here's the same image, this time with a "bupu" scheme:

image

This example came from https://observablehq.com/@yurivish/building-a-better-beeswarm where there are lots of circles of varying sizes next to each other and you want to be able to quickly tell which were placed earlier/later.

@mbostock mbostock added the question Further information is needed label Aug 30, 2021
@Fil
Copy link
Contributor

Fil commented Aug 30, 2021

ref. #352

(just note that I'm actively working on this)

@Fil Fil self-assigned this Aug 30, 2021
@jonhelfman
Copy link

Thank you for working on this Fil.
If it is helpful, I made a notebook that plots the brightness linearity of each D3 colormap https://observablehq.com/@jonhelfman/colormap-brightness
For white backgrounds, there is a trade off between total brightness range and contrast with white.
Inferno has a great range, but its lightest color has poor contrast with white.
Viridis has almost as large a range, but its lightest color has better contrast with white.
Cool has a smaller brightness range than Viridis, but its lightest color has even better contrast with white.
The Cool colors also have excellent contrast with black, which is useful for charts with black backgrounds.
Here is a notebook that compares the colormaps and their contrast with white:
https://observablehq.com/@jonhelfman/color-contrast

@Fil
Copy link
Contributor

Fil commented Dec 1, 2021

Cross-ref: d3/d3-scale-chromatic#27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is needed
Projects
None yet
Development

No branches or pull requests

4 participants