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

2015-06-05 Thread Jody Klymak
Hi Eric, OK, how about an example based on the following notebook: http://nbviewer.ipython.org/url/web.uvic.ca/~jklymak/matplotlib/MatplotlibNormExamples.ipynb It includes Joe’s example of a non-linear midpoint. Cheers, Jody > On Jun 5, 2015, at 14:26 PM, Eric Firing wrote: > > On 2015/06

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

2015-06-05 Thread Paul Hobson
Dang it, Joe, How do you do everything l try to do like 1000x better? Guess I'll be closing this: https://github.com/matplotlib/matplotlib/pull/3858 -paul On Fri, Jun 5, 2015 at 2:57 PM, Joe Kington wrote: > Not to plug one of my own answers to much, but here's a basic example. > http://stack

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" wrote: > On

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 pos

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

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 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 positive

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 wrote: > On 2015/06/05 8:17 AM, Sourish Basu wrote: > > Very often the "zero" of an anomaly i

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 11:39 AM, Sourish Basu 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) shows small > variati

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 wrote: On 06/05/2015

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 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 colormap that d

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

2015-06-05 Thread Eric Firing
On 2015/06/05 6:15 AM, Joe Kington wrote: > Hopefully I will have some time today to play around with the D > option. I want to see if I can shift the curve a bit to include more > yellows and orange so that it can have a mix of cool and warm colors. > > > > I was thinking the same thin

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 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 has to set th

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

2015-06-05 Thread Joe Kington
On Fri, Jun 5, 2015 at 11:15 AM, Joe Kington wrote: > Hopefully I will have some time today to play around with the D option. I >> want to see if I can shift the curve a bit to include more yellows and >> orange so that it can have a mix of cool and warm colors. >> >> >> > I was thinking the same

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 al

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 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 may be a t

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). I

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

2015-06-05 Thread Benjamin Root
It is funny that you mention that you prefer the warmer colors over the cooler colors. There has been some back-n-forth about which is better. I personally have found myself adverse to using just cool or just warm colors, preferring a mix of cool and warm colors. Perhaps it is my background in mete

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

2015-06-05 Thread Philipp A.
I vote for A and B. Only B if i get just one vote. C is too washed out and i like the warm colors more than the cold ones in D. It’s funny that this comes up while I’m handling colormaps in my own work at the moment. Neal Becker schrieb am Fr., 5. Juni 2015 um 12:58 Uhr: > I vote for D, althou

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

2015-06-05 Thread Thomas Sprinzing
I opt for B, and adding the matlab-default as secondary. cheers THomas Thomas Sprinzing Dipl.-Ing. (FH) Labor Tiefdruck Studiengang Druck- und Medientechnologie Hochschule der Medien University of Applied Sciences Nobelstr. 10 70569 Stuttgart Telefon: +49 711 8923 2196 www.hdm-stuttgart.

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

2015-06-05 Thread Jan Heczko
I'd choose D. A and B are too dark. Also, A-C seem to hide some detail in the simulation of color blindness. On 4 June 2015 at 22:42, Eric Firing wrote: > I am forwarding a message from Nathaniel Smith which is the start of a > long thread on matplotlib-devel > http://news.gmane.org/gmane.comp.p

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

2015-06-05 Thread Neal Becker
I vote for D, although I like matlab's new default even better -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/li