-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Colour map manipulation tools #1
Comments
I just noticed that there are some quirks to the functions used to crop the colour maps, as implemented in cmocean. They seem particularly targeted to diverging colour maps, as for example using Regarding the |
Given there does not seem to be a feasible way to systematically 'lighten' colourmaps without keeping the linearity reasonable, I think your idea of a pastel version for certain colourmaps is a good idea. I suppose this will only apply to monochromatic and possibly bichromatic(?) colourmaps only. We will, of course, need to think about how we will name these without the naming convention being too verbose. |
I ended not adopting anything from cmocean, as I wasn't entirely sure about the motivation for their design choices. I have created three new functions ( |
Added in version 0.5.0. Following @AstroRobin's suggestion I simplified the examples. |
With @AstroRobin we have discussed before including some of the functions included in cmocean, and while
crop
andcrop_by_percent
are straightforward to add (and I'm hoping to add soon),lighten
is not. They change thealpha
to increase the lightness of the colour maps, which has three issues:alpha<1
.I need to think more about this, but possibly doing the compositing in any La*b* colour space (like CAM02-UCS) could fix this.
The text was updated successfully, but these errors were encountered: