Re: [Matplotlib-users] pcolor with non-integer axes?

2007-03-29 Thread Park Hays
or accepts non-integer values of X and Y, so I don't know what the problem is. Please post a minimal but complete script that illustrates the error, and say what version of mpl you are using. With moderately recent versions, using masked arrays should work fine. Eric Park Hays wrote: > I

[Matplotlib-users] Plotting Irregularly Spaced Data

2007-03-29 Thread Park Hays
I am sampling over the surface of a sphere. I evaluate a function at each position (like lat and lon or phi and theta)--the function I evaluate is fairly expensive. As a result I don't want to sample like: theta = linspace( -pi, pi, Ntheta) phi = linspace( 0, pi/2, Nphi) since theta will be gross

[Matplotlib-users] pcolor with non-integer axes?

2007-03-29 Thread Park Hays
I have bogus values I don't want to display in a gridded data set (regions of non-convergence, for example). pcolor does exactly what I want with a masked array, except the X and Y arguments must be integer arrays (as far as I can tell) and my data X and Y points are not integer arrays. An appro