-
Notifications
You must be signed in to change notification settings - Fork 197
Update boolean scheme9 scales #706
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
Conversation
|
+1 to this feature! (how light the hue was came up in data viz dev pairing this morning, and @mkfreeman ran with it!) |
|
I see that I need to update the test (2) plot colorSchemesOrdinal:), looking into that now. |
Co-authored-by: Mike Bostock <mbostock@gmail.com>
|
This PR looks good. I’ve also now enabled branch restrictions for this repo to make it explicit that approval is expected before merging. 🙏 |
|
Thanks! I wasn’t sure if the review above was explicit approval, but was recently told that the Author of the PR should merge (so when I saw the button enabled, I thought it was on me). |
|
Just curious about the motivation for the switch from: The most important goal (to me) was to avoid the lightest end of the spectrum, which is now solved for*. But, sometimes the dark end is pretty dark too. So, when we were testing things, I thought that [5][1] / [5][3] was a nice balance between getting a lot of intensity difference between the two boolean colors while also avoiding the darkest darks and lightest lights. All in all, I'm super happy with this change and am 100% fine leaving it as That said, I am curious to understand why you prefered [3][1]/[3][2] to [5][1]/[5][3] :). Thank you! * except the Magma / Viridis / Plasma family which go from dark-to-light by default instead of light-to-dark like "greys", etc. |
|
This was @mbostock's suggestion, but to me it |
|
The general hand-wavy argument is that if a scheme is good for 3 colors, then a pair extracted from that scheme should be good for 2 colors? |
|
sounds good - thanks! |

The lighter color of the boolean color scales is difficult to see against a white background. This branch updates the default scale. See this notebook to compare results.