[Matplotlib-users] Custom colormap is inconsistent. What is wrong?

2011-02-01 Thread Jeremy Conlin
I'm trying to create a custom colormap used with pcolormesh, but the results seem inconsistent to me. I want the following colors -3 x = -2 - Black -2 x = -1 - Blue -1 x = 0 - Yellow 0 x = 1 - Green 1 x = inf - Red A minimal example is copied below. I have a 2-D

Re: [Matplotlib-users] Custom colormap is inconsistent. What is wrong?

2011-02-01 Thread Benjamin Root
On Tue, Feb 1, 2011 at 5:48 PM, Jeremy Conlin jlcon...@gmail.com wrote: I'm trying to create a custom colormap used with pcolormesh, but the results seem inconsistent to me. I want the following colors -3 x = -2 - Black -2 x = -1 - Blue -1 x = 0 - Yellow 0 x = 1 -

Re: [Matplotlib-users] Custom colormap is inconsistent. What is wrong?

2011-02-01 Thread Jeremy Conlin
On Tue, Feb 1, 2011 at 5:00 PM, Benjamin Root ben.r...@ou.edu wrote: On Tue, Feb 1, 2011 at 5:48 PM, Jeremy Conlin jlcon...@gmail.com wrote: I'm trying to create a custom colormap used with pcolormesh, but the results seem inconsistent to me.  I want the following colors -3 x = -2 -

Re: [Matplotlib-users] Custom colormap is inconsistent. What is wrong?

2011-02-01 Thread Benjamin Root
On Tue, Feb 1, 2011 at 6:05 PM, Jeremy Conlin jlcon...@gmail.com wrote: On Tue, Feb 1, 2011 at 5:00 PM, Benjamin Root ben.r...@ou.edu wrote: On Tue, Feb 1, 2011 at 5:48 PM, Jeremy Conlin jlcon...@gmail.com wrote: I'm trying to create a custom colormap used with pcolormesh, but the

Re: [Matplotlib-users] Custom colormap is inconsistent. What is wrong?

2011-02-01 Thread Paul Ivanov
Jeremy Conlin, on 2011-02-01 16:48, wrote: I'm trying to create a custom colormap used with pcolormesh, but the results seem inconsistent to me. I want the following colors -3 x = -2 - Black -2 x = -1 - Blue -1 x = 0 - Yellow 0 x = 1 - Green 1 x = inf - Red

Re: [Matplotlib-users] Custom colormap is inconsistent. What is wrong?

2011-02-01 Thread Eric Firing
On 02/01/2011 02:18 PM, Benjamin Root wrote: On Tue, Feb 1, 2011 at 6:05 PM, Jeremy Conlin jlcon...@gmail.com mailto:jlcon...@gmail.com wrote: On Tue, Feb 1, 2011 at 5:00 PM, Benjamin Root ben.r...@ou.edu mailto:ben.r...@ou.edu wrote: On Tue, Feb 1, 2011 at 5:48

Re: [Matplotlib-users] Custom colormap is inconsistent. What is wrong?

2011-02-01 Thread Jeremy Conlin
On Tue, Feb 1, 2011 at 6:31 PM, Eric Firing efir...@hawaii.edu wrote: On 02/01/2011 02:18 PM, Benjamin Root wrote: On Tue, Feb 1, 2011 at 6:05 PM, Jeremy Conlin jlcon...@gmail.com mailto:jlcon...@gmail.com wrote:     On Tue, Feb 1, 2011 at 5:00 PM, Benjamin Root ben.r...@ou.edu