holoviz / colorcet

A set of useful perceptually uniform colormaps for plotting scientific data
http://colorcet.holoviz.org
Other
682 stars 52 forks source link

Ensure that categorical colormaps are registered as ListedColormap #39

Closed philippjfr closed 2 years ago

philippjfr commented 5 years ago

Generally categorical colormaps should be registered as ListedColormap instead of a LinearSegmentedColormap so the Glasbey colormaps should be switched.

kcpevey commented 3 years ago

__init__.mpl_cm is always using LinearSegmentedColormap but it needs to have some added logic to use ListedColormap for categorical colormaps. Perhaps through some mapping on the groups/name parameter.