[Matplotlib-users] How to make colormaps

2010-04-20 Thread Nikolaus Rath
Hello, Maybe my googling skills are deficient, but I wasn't able to find any information on how to define my own colormap. Can someone give me a pointer, or a basic example how to create a simple map that e.g. maps -1 to Red, 0 to White, and 1 to Blue? Thanks, -Nikolaus -- »Time flies

Re: [Matplotlib-users] How to make colormaps

2010-04-20 Thread Jim Vickroy
Nikolaus Rath wrote: Hello, Maybe my googling skills are deficient, but I wasn't able to find any information on how to define my own colormap. Can someone give me a pointer, or a basic example how to create a simple map that e.g. maps -1 to Red, 0 to White, and 1 to Blue? Thanks,

Re: [Matplotlib-users] How to make colormaps

2010-04-20 Thread Ryan May
On Tue, Apr 20, 2010 at 11:40 AM, Jim Vickroy jim.vick...@noaa.gov wrote: Nikolaus Rath wrote: Hello, Maybe my googling skills are deficient, but I wasn't able to find any information on how to define my own colormap. Can someone give me a pointer, or a basic example how to create a simple

Re: [Matplotlib-users] How to make colormaps

2010-04-20 Thread Jim Vickroy
Ryan May wrote: On Tue, Apr 20, 2010 at 11:40 AM, Jim Vickroy jim.vick...@noaa.gov wrote: Nikolaus Rath wrote: Hello, Maybe my googling skills are deficient, but I wasn't able to find any information on how to define my own colormap. Can someone give me a pointer, or a basic example how

Re: [Matplotlib-users] How to make colormaps

2010-04-20 Thread Nikolaus Rath
On 04/20/2010 01:06 PM, Ryan May wrote: On Tue, Apr 20, 2010 at 11:40 AM, Jim Vickroy jim.vick...@noaa.gov wrote: Nikolaus Rath wrote: Hello, Maybe my googling skills are deficient, but I wasn't able to find any information on how to define my own colormap. Can someone give me a pointer,

Re: [Matplotlib-users] How to make colormaps

2010-04-20 Thread Ryan May
I don't know what your Google search results page presented, but the the second entry on the first search results page, for me, was the following: Cookbook/Matplotlib - Feb 12, 2010 ... Show colormaps - Small script to display all of the Matplotlib colormaps, and an exampleshowing how to