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