JuliaGraphics / ColorSchemes.jl

colorschemes, colormaps, gradients, and palettes
http://juliagraphics.github.io/ColorSchemes.jl/
Other
187 stars 33 forks source link

RdBu and BrBg from matplotlib? #90

Closed stevengj closed 2 years ago

stevengj commented 2 years ago

Matplotlib seems like it has finer-granulated versions of these, and they are nice to have as diverging colormaps for signed data.

I like the discussion in Matplotlib's manual here: https://matplotlib.org/stable/tutorials/colors/colormaps.html — it would be nice to have something similar in the documentation, and in particular to highlight which colormaps are perceptually uniform and other nice properties.

cormullion commented 2 years ago

Hi! Yes, in earlier releases I used to include figures with a bit more information:

image

but keeping the size of the swatch docs down became a consideration... And only a proportion of the colorschemes are for plotting purposes... It would be good to add some more information like the one you referenced.

Perhaps we could have a function perceptual_uniformity(cs::ColorScheme) that returns some useful information - like a score for suitability?

stevengj commented 2 years ago

Maybe just a section of the manual listing a subset of color schemes that are most suitable for visualization, like in Matplotlib's docs?