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
{{ message }}
Repository navigation
bi-directional perceptually flat colormaps in matplotlib? #11508
A few folks have asked me how they can plot a perceptually flat colormap (like viridis) for bi-directional data (AKA, data that you'd use coolwarm or RdBu for). I searched around but didn't find anything like this in matplotlib. I know it's been discussed before, does anyone know if those discussions went anywhere?
@choldgraf I won't be at scipy, but I'm in Berkeley now for 3 weeks, happy to spend an afternoon hacking this together/doing other Matplotlib things if you'll be around at all.
@dstansby cool! I'll be back from Scipy starting Friday. Whereabouts are you working? You could probably use the BIDS space if you need a place to hang.
Activity
choldgraf commentedon Jun 26, 2018
Ah I found #6254 which implements a circular colormap. Has something similar been done for a diverging colormap?
dstansby commentedon Jun 26, 2018
This would be a really great thing to add, and I don't think it already exists.
choldgraf commentedon Jun 26, 2018
are you gonna be at scipy @dstansby ? or @tacaswell ? maybe we can make it into a quick hack :-)
afvincent commentedon Jun 29, 2018
@choldgraf It looks like cmocean may have a few of them, namely "balance", "delta", and "curl".
dstansby commentedon Jul 9, 2018
@choldgraf I won't be at scipy, but I'm in Berkeley now for 3 weeks, happy to spend an afternoon hacking this together/doing other Matplotlib things if you'll be around at all.
choldgraf commentedon Jul 10, 2018
@dstansby cool! I'll be back from Scipy starting Friday. Whereabouts are you working? You could probably use the BIDS space if you need a place to hang.
ImportanceOfBeingErnest commentedon Aug 11, 2018
Possibly related: #6033
choldgraf commentedon Aug 11, 2018
ooh nice find
jklymak commentedon Feb 4, 2019
I'll close in favour of #6033