[SciPy-user] Restricting the values to be plotted while usingcontourf
Whitcomb, Mr. Tim
Mon May 4 10:50:34 CDT 2009
We did this by creating a new instance of matplotlib.colors.Normalize
that restricted the range: something like
contourf(X, Y, Z, norm=matplotlib.colors(Normalize(vmin=0, vmax=100)).
Adding extend='both' in the contourf helped as well, eliminating the
out-of-range white spots.
I would be very interested if there is a better/more standard way of
> -----Original Message-----
> From: email@example.com
> [mailto:firstname.lastname@example.org] On Behalf Of Mani chandra
> Sent: Monday, May 04, 2009 7:27
> To: SciPy Users List
> Subject: [SciPy-user] Restricting the values to be plotted
> while usingcontourf
> How can I restrict the values of 'z' while using
> contourf. For example, if my dataset has values of z ranging
> from say 0 to 10000, I only want the plot of those values of
> 'z' from 0 to 100 and appropriately set the colormap.
> Mani chandra
> SciPy-user mailing list
More information about the SciPy-user