Reputation: 31
I am using the Python seaborn package to generate a diverging color palette (seaborn.diverging_palette).
colmap=sns.diverging_palette(3.8, 206.6, s = 75, l =30, n=200)
By default, it is possible to define the two extremity colors using a different "hue" (H) parameter from the HSLuv scale (http://www.hsluv.org/) these are set to 3.8 and 206.6 at the moment.
Is it also possible to define a different "saturation" (S) and "lighting" (L) value for both colors?
Upvotes: 3
Views: 753
Reputation: 2674
You can use the Python implementation for HSLuv to find interpolations between colors. It's exactly what you need to work in parallel with seaborn.
Install it with:
pip install hsluv
I know it's 3 years late, but this answer appears in the search results.
Upvotes: 0