Re: matplotlib pyplot contourf with 1-D array (vector)

2010-08-26 Thread becky_s
On Aug 26, 1:52 am, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On Wed, 25 Aug 2010 14:57:33 -0700 (PDT), becky_s rda.se...@gmail.com declaimed the following in gmane.comp.python.general: px,py = p(mesolon, mesolat)         For my elucidation, what does that      p(x,y)  actually do?

Re: matplotlib pyplot contourf with 1-D array (vector)

2010-08-26 Thread becky_s
I was able to figure this out on my own. First, to eliminate the masked arrays, I used a combination of the where and compress functions to remove any missing data from my 1-D arrays. Then, I used the griddata function as described above. This did the trick. --

matplotlib pyplot contourf with 1-D array (vector)

2010-08-25 Thread becky_s
All, I’m having a problem with the matplotlib.pyplot.contourf function. I have a 1-D array of latitudes (mesolat), a 1-D array of longitudes (mesolon), and a 1-D array of rainfall values (rain) at those corresponding lat, lon points. After importing the necessary libraries, and reading in these

Re: matplotlib pyplot contourf with 1-D array (vector)

2010-08-25 Thread becky_s
On Aug 25, 4:57 pm, becky_s rda.se...@gmail.com wrote: All, I’m having a problem with the matplotlib.pyplot.contourf function.  I have a 1-D array of latitudes (mesolat), a 1-D array of longitudes (mesolon), and a 1-D array of rainfall values (rain) at those corresponding lat, lon points.