jiffyclub / palettable

Color palettes for Python
https://jiffyclub.github.io/palettable/
Other
768 stars 73 forks source link

make full LUT data available via public API? #44

Open tlambert03 opened 1 year ago

tlambert03 commented 1 year ago

Hi and thanks for the library,

Apologies if I missed this, but I'm wondering if there is a public API to access, for example, the full set of colors in the matplotlib viridis or magma data (i.e. the values in palettable.matplotlib.matplotlib._NAMES_TO_DATA

It appears that one would have to use palettable.matplotlib.Viridis_20.mpl_colormap to get a mpl colormap using the truncated 20-color data, then re-interpolate... is that correct?