-
Notifications
You must be signed in to change notification settings - Fork 0
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
Update colour palettes #1
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi there! I’m reviewing this as requested, but I’m not confident I have all the right information since I can’t find any versions of these same visualizations with the last version’s colors. I still have feedback, just disregard anything that seems outright misinformed about the state of the palettes.
On the highest level, none of the changes stand out to me negatively. This looks like additions that address issues with the limits of the previous palettes (e.g. no categorical options, colors not shifting well between light and dark backgrounds) and do so in a way that labels it for anyone using the visualization package. I don’t think there will ever be a single right answer for data visualization color palettes in terms of visual accessibility concerns, so adding options seems like an appropriate choice.
Questions and comments in no particular order, but numbered for easy reference:
- Visualizations with their data points outlined/with gaps between them and the next data are the most effective to me. They have the best contrast and ensure contrast because we always know what colors to calculate for. I am seeing this almost exclusively on the bar plots and distribution plots. I also think any plot using lines works for the inverse reason. I would love to see this approach on more of the plots and as a standard for the palette, but I understand that may be beyond the scope of a color palette package and more in how the plots themselves are structured when generated. I also understand some plot types rely on transparency and overlapping data points to communicate, so that may provide an additional challenge.
- While I did not recheck every single color against its background for WCAG contrast ratios (I think this has already been done), a majority of them appear to have sufficient contrast. Ones that appear more low contrast to me are
a. The blues from both categorical palettes on dark backgrounds.
b. The purples from both categorical palettes on dark backgrounds. - This revision improves the luminance of all the colors on dark backgrounds. This is awesome and helps with contrast! Great job!
- This revision also maintains the hue of each color really well. Even when on light and dark backgrounds or in one-color palettes it feels like the same color. I think this is a big improvement!
- One-color palettes—including grayscale—do still struggle to differentiate colors from others in the data set. I do think they have good contrast on their backgrounds, but not with each other. I say this knowing from experience how basically impossible it is to do both at once. This is when I’d recommend adding a non-color differentiation to one-color palettes such as outlines or textured/patterned fills. I do not know if this is out of scope for this project at the moment.
- I am not finding any issues with green and red being used side by side or analogous colors like blue and purple with close value. I think there is good enough variety on the whole that these should work okay with color blindness.
- I was happy to find a grayscale addition in this revision! Hooray!
- I am guessing the
psf
colors are from the Python Software Foundation? They look fine, but I’m not sure if there’s a reason behind this. - Do the “bright” categorical colors come from somewhere? I have no specific complaints about them, they just don’t share colors with any of the other options as far as I am aware.
Thanks for compiling this @trallard! I'll try to also address @isabela-pf's feedback and keep the review structure and bullet numbering similar for easier discussion. Here’s what I think:
|
This PR updates the sequential and diverging colour palettes based on work by @smeragoel
Sample plots are located in
examples/images
, there is a folder for each of the colour palettes and themes (light, dark)