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
- Re: [Matplotlib-users] Fwd: [matplotlib-devel] RFC: candida... Neal Becker
- Re: [Matplotlib-users] Fwd: [matplotlib-devel] RFC: ca... Philipp A.
- Re: [Matplotlib-users] Fwd: [matplotlib-devel] RFC... Benjamin Root
- Re: [Matplotlib-users] [matplotlib-devel] RFC:... Jody Klymak
- Re: [Matplotlib-users] [matplotlib-devel] ... Paul Hobson
- Re: [Matplotlib-users] [matplotlib-devel] ... Thomas Caswell
- Re: [Matplotlib-users] [matplotlib-de... Jody Klymak
- Re: [Matplotlib-users] [matplotlib-devel] ... Jody Klymak
- Re: [Matplotlib-users] [matplotlib-de... Sourish Basu
- Re: [Matplotlib-users] [matplotlib-de... Jody Klymak
- Re: [Matplotlib-users] [matplotlib-devel] ... Eric Firing
- Re: [Matplotlib-users] [matplotlib-de... Benjamin Root
- Re: [Matplotlib-users] [matplotlib-de... Jody Klymak
- Re: [Matplotlib-users] [matplotlib-de... Eric Firing
- Re: [Matplotlib-users] [matplotlib-de... Jody Klymak
- Re: [Matplotlib-users] [matplotlib-de... Sourish Basu
- Re: [Matplotlib-users] [matplotlib-de... Joe Kington
- Re: [Matplotlib-users] [matplotlib-de... Paul Hobson
- Re: [Matplotlib-users] [matplotlib-de... Joe Kington
- Re: [Matplotlib-users] [matplotlib-de... Sourish Basu
- Re: [Matplotlib-users] Fwd: [matplotlib-devel]... Joe Kington