Re: [Matplotlib-users] mpl.colors.BoundaryNorm question

2009-08-14 Thread Eric Firing
P.R. wrote: Hi, I'd like to generate a colormap index based on an array of levels using an existing colormap (Spectral). However, Id like the cmap index to start at the 0.3 value of the Spectral scale (orange/yellow area) instead of starting at the '0' scale value (red area), and then

Re: [Matplotlib-users] mpl.colors.BoundaryNorm question

2009-08-14 Thread Eric Firing
Eric Firing wrote: It occurred to me after posting that imshow by default gives a misleading picture of the effect of the cmap and boundary norm. To get a clear picture, add the interpolation='nearest' kwarg to the imshow call. Eric import numpy as np import matplotlib.pyplot as plt

Re: [Matplotlib-users] mpl.colors.BoundaryNorm question

2009-08-14 Thread P.R.
with, say, cm.jet? Thanks, P.Romero -Original Message- From: Eric Firing [mailto:efir...@hawaii.edu] Sent: 2009-08-14 12:49 PM To: P.R. Cc: matplotlib-users@lists.sourceforge.net Subject: Re: [Matplotlib-users] mpl.colors.BoundaryNorm question Eric Firing wrote: It occurred to me after posting

[Matplotlib-users] mpl.colors.BoundaryNorm question

2009-08-13 Thread P.R.
Hi, I'd like to generate a colormap index based on an array of levels using an existing colormap (Spectral). However, Id like the cmap index to start at the 0.3 value of the Spectral scale (orange/yellow area) instead of starting at the '0' scale value (red area), and then continue until the 0.8