You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to use cmasher's beautiful diverging colormaps for plotting purposes. I need a diverging colormap where the color in the centre is 'close to' white but not completely white. The closest equivalent of what I want is the colormap 'coolwarm' in Matplotlib. Just like cmasher has an ability to cut colors from the edges, is it possible to introduce the ability to cut color from the centre? The available diverging colormaps with a white centre are too white for my purpose. Thanks for considering this idea in advance!
The text was updated successfully, but these errors were encountered:
This is now possible with the combine_cmaps utility. It doesn't directly allow chopping out a part of a colormap, but you could achieve this by taking two sub_cmaps to avoid the central unwanted part, and recombine them, like so:
Thanks @DanielYang59 for your reply ! Indeed it seems that we now have API to support this use case so I believe this can be closed as solved in cmasher 1.8.0. Feel free to ping me if I'm understanding this wrong and the issue should be re-opened !
I would like to use cmasher's beautiful diverging colormaps for plotting purposes. I need a diverging colormap where the color in the centre is 'close to' white but not completely white. The closest equivalent of what I want is the colormap 'coolwarm' in Matplotlib. Just like cmasher has an ability to cut colors from the edges, is it possible to introduce the ability to cut color from the centre? The available diverging colormaps with a white centre are too white for my purpose. Thanks for considering this idea in advance!
The text was updated successfully, but these errors were encountered: