Skip to content

bi-directional perceptually flat colormaps in matplotlib? #11508

Closed

Description

@choldgraf

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?

Activity

  1. choldgraf commented on Jun 26, 2018

    @choldgraf
    ContributorAuthor

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

  2. added this to the v3.1 milestone on Jun 26, 2018
  3. dstansby commented on Jun 26, 2018

    @dstansby
    Member

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

  4. choldgraf commented on Jun 26, 2018

    @choldgraf
    ContributorAuthor

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

  5. afvincent commented on Jun 29, 2018

    @afvincent
    Contributor

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

  6. dstansby commented on Jul 9, 2018

    @dstansby
    Member

    @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.

  7. choldgraf commented on Jul 10, 2018

    @choldgraf
    ContributorAuthor

    @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.

  8. ImportanceOfBeingErnest commented on Aug 11, 2018

    @ImportanceOfBeingErnest
    Member

    Possibly related: #6033

  9. choldgraf commented on Aug 11, 2018

    @choldgraf
    ContributorAuthor

    ooh nice find

  10. jklymak commented on Feb 4, 2019

    @jklymak
    Member

    I'll close in favour of #6033

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions