Re: [Matplotlib-users] [matplotlib-devel] RFC: candidates for a new default colormap

2015-06-08 Thread Sourish Basu
On 06/05/2015 03:57 PM, Joe Kington wrote: Not to plug one of my own answers to much, but here's a basic example. http://stackoverflow.com/questions/20144529/shifted-colorbar-matplotlib I've been meeting to submit a PR with a more full

Re: [Matplotlib-users] [matplotlib-devel] RFC: candidates for a new default colormap

2015-06-05 Thread Eric Firing
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.

Re: [Matplotlib-users] [matplotlib-devel] RFC: candidates for a new default colormap

2015-06-05 Thread Jody Klymak
On 5 Jun 2015, at 9:27 AM, Thomas Caswell tcasw...@gmail.com wrote: Jody, This has come up before and the consensus seemed to be that for the anomaly data sets knowing where the zero is is very important and the default color limits will probably get that wrong. So long as the user

Re: [Matplotlib-users] [matplotlib-devel] RFC: candidates for a new default colormap

2015-06-05 Thread Jody Klymak
Hi, On 5 Jun 2015, at 11:17 AM, Sourish Basu sourish.b...@gmail.com wrote: On 06/05/2015 10:17 AM, Jody Klymak wrote: Anyways, I guess I am advocating trying to find a colormap with a very obvious central hue to represent zero. Anomaly data sets are *very* common, so having a default

Re: [Matplotlib-users] [matplotlib-devel] RFC: candidates for a new default colormap

2015-06-05 Thread Sourish Basu
On 06/05/2015 12:22 PM, Jody Klymak wrote: Hi, On 5 Jun 2015, at  11:17 AM, Sourish Basu sourish.b...@gmail.com wrote: On 06/05/2015

Re: [Matplotlib-users] [matplotlib-devel] RFC: candidates for a new default colormap

2015-06-05 Thread Jody Klymak
On 5 Jun 2015, at 11:39 AM, Sourish Basu sourish.b...@gmail.com wrote: This problem is reasonably common for me, BTW. I can have a carbon monoxide field with an average/background of 60 ppb, but variations from 30 to 550 ppb. So I need a color scale which (a) is white at 60, and (b)

Re: [Matplotlib-users] [matplotlib-devel] RFC: candidates for a new default colormap

2015-06-05 Thread Paul Hobson
On Fri, Jun 5, 2015 at 9:17 AM, Jody Klymak jkly...@uvic.ca wrote: Anyways, I guess I am advocating trying to find a colormap with a very obvious central hue to represent zero. Anomaly data sets are *very* common, so having a default colormap that doesn’t do something reasonable with them

Re: [Matplotlib-users] [matplotlib-devel] RFC: candidates for a new default colormap

2015-06-05 Thread Thomas Caswell
Jody, This has come up before and the consensus seemed to be that for the anomaly data sets knowing where the zero is is very important and the default color limits will probably get that wrong. So long as the user has to set the limits, they can also select one of the diverging color maps. I

Re: [Matplotlib-users] [matplotlib-devel] RFC: candidates for a new default colormap

2015-06-05 Thread Jody Klymak
Hi, This is a great initiative, I love colormaps and am always disatisfied. However, I am concerned about these proposed defaults. As Ben says, there are two types of data sets: “intensity” or “density” data, and data sets with a natural zero (i.e. positive or negative anomaly or velocity).

Re: [Matplotlib-users] [matplotlib-devel] RFC: candidates for a new default colormap

2015-06-05 Thread Jody Klymak
Hi Eric, On 5 Jun 2015, at 12:20 PM, Eric Firing efir...@hawaii.edu wrote: 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

Re: [Matplotlib-users] [matplotlib-devel] RFC: candidates for a new default colormap

2015-06-05 Thread Eric Firing
On 2015/06/05 11:13 AM, Jody Klymak wrote: Though I was hazily aware of norms, I’d not really seen that before. I particularly like the example athttp://matplotlib.org/examples/pylab_examples/pcolor_log.html This seems useful enough that a section under “User Guide:Advanced Guide” would be

Re: [Matplotlib-users] [matplotlib-devel] RFC: candidates for a new default colormap

2015-06-05 Thread Sourish Basu
On 06/05/2015 01:20 PM, Eric Firing wrote: 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

Re: [Matplotlib-users] [matplotlib-devel] RFC: candidates for a new default colormap

2015-06-05 Thread Joe Kington
Not to plug one of my own answers to much, but here's a basic example. http://stackoverflow.com/questions/20144529/shifted-colorbar-matplotlib I've been meeting to submit a PR with a more full featured version for a few years now, but haven't. On Jun 5, 2015 4:45 PM, Sourish Basu

Re: [Matplotlib-users] [matplotlib-devel] RFC: candidates for a new default colormap

2015-06-05 Thread Benjamin Root
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