Re: [Matplotlib-users] LinearSegmentedColormap, Normalize, and colorbar

2010-12-10 Thread Benjamin Root
On Wed, Dec 8, 2010 at 9:15 PM, Timothy W. Hilton hil...@meteo.psu.eduwrote: Hello, I'm trying to teach myself to create custom colormaps to highlight certain aspects of a dataset I am working with. The script below produces two plots -- the first shows a 4x4 array foo of random floats

[Matplotlib-users] LinearSegmentedColormap, Normalize, and colorbar

2010-12-08 Thread Timothy W. Hilton
Hello, I'm trying to teach myself to create custom colormaps to highlight certain aspects of a dataset I am working with. The script below produces two plots -- the first shows a 4x4 array foo of random floats between 0.0 and 1.0, and the second shows the same array, but normalized such that

Re: [Matplotlib-users] LinearSegmentedColormap

2008-03-13 Thread Ryan May
Michael Hearne wrote: Ryan - Thanks for your response. Shouldn't a color dictionary have 4 columns - a value, and the corresponding R,G,B values? If I understand your response, the row with 0.2 as the first column has only two values. How does LinearSegmentedColormap derive an RGB

[Matplotlib-users] LinearSegmentedColormap

2008-03-12 Thread Michael Hearne
I'm trying to understand the usage of Colormaps, and LinearSegmentedColormaps in particular. I can create segmentdata that looks like the example at the bottom of this message. Each color has a 3x9 list of values. I can then construct a LinearSegmentedColormap as follows: palette =

Re: [Matplotlib-users] LinearSegmentedColormap

2008-03-12 Thread Ryan May
Michael Hearne wrote: I'm trying to understand the usage of Colormaps, and LinearSegmentedColormaps in particular. I can create segmentdata that looks like the example at the bottom of this message. Each color has a 3x9 list of values. I can then construct a LinearSegmentedColormap as