Skip to content

bi-directional perceptually flat colormaps in matplotlib? #11508

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

Closed
choldgraf opened this issue Jun 26, 2018 · 9 comments
Closed

bi-directional perceptually flat colormaps in matplotlib? #11508

choldgraf opened this issue Jun 26, 2018 · 9 comments
Milestone

Comments

@choldgraf
Copy link
Contributor

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
Copy link
Contributor Author

Ah I found #6254 which implements a circular colormap. Has something similar been done for a diverging colormap?

@dstansby dstansby added this to the v3.1 milestone Jun 26, 2018
@dstansby
Copy link
Member

This would be a really great thing to add, and I don't think it already exists.

@choldgraf
Copy link
Contributor Author

are you gonna be at scipy @dstansby ? or @tacaswell ? maybe we can make it into a quick hack :-)

@afvincent
Copy link
Contributor

@choldgraf It looks like cmocean may have a few of them, namely "balance", "delta", and "curl".

@dstansby
Copy link
Member

dstansby commented 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
Copy link
Contributor Author

@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
Copy link
Member

Possibly related: #6033

@choldgraf
Copy link
Contributor Author

ooh nice find

@jklymak
Copy link
Member

jklymak commented Feb 4, 2019

I'll close in favour of #6033

@jklymak jklymak closed this as completed Feb 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants