Furthermore, I think there is some work being done to add functionality to
the Norm to allow specifying a middle value along with a vmin and a vmax.

Ben Root

On Fri, Jun 5, 2015 at 3:20 PM, Eric Firing <efir...@hawaii.edu> wrote:

> On 2015/06/05 8:17 AM, Sourish Basu wrote:
> > Very often the "zero" of an anomaly is not at the center of the extrema,
> > and requires creating a custom diverging colormap anyway (see attached
> > example).
>
> Reminder: in matplotlib, color mapping is done with the combination of a
> colormap and a norm.  This allows one to design a norm to handle the
> mapping, including any nonlinearity or difference between the handling
> of positive and negative values.  This is more general than customizing
> a colormap; once you have a norm to suit your purpose, you can use it
> with any colormap.
>
> Maybe this is actually what you are already doing, but I wanted to point
> it out here in case some readers are not familiar with this
> colormap+norm strategy.
>
> Eric
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
------------------------------------------------------------------------------
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to