sandialabs / slycat

Web-based data science analysis and visualization platform.
http://slycat.readthedocs.org
Other
75 stars 19 forks source link

Categorical colormaps #421

Open pjcross opened 9 years ago

pjcross commented 9 years ago

Our blue-white-red color map is great for continuous variables, but for categories we might want to have another choice. In particular, I was thinking of using Colin Ware's 12 colors recommended for labeling - red, green, yellow, blue, black, white, pink, cyan, gray, orange, brown, purple. We might have to play with the definition of gray or white a bit depending on the background.

tshead2 commented 9 years ago

Color Brewer has lots of high quality categorical maps.

pjcross commented 9 years ago

I would also look at http://tools.medialab.sciences-po.fr/iwanthue/theory.php. I'm trying to find a way to get past a palette of only 12 colors.

pjcross commented 6 years ago

If we do #620, that would provide a mechanism to do this, though it wouldn't be an automatic feature for categorical variables (i.e. the color map would be changed for all variables, instead of just the categorical ones, which we wouldn't want). Perhaps we need to define types of color maps and provide different maps for continuous vs. discrete variables.