John wrote: > No, it didn't get cut off, I just decided to move that section forward > before the code and forgot to delete that line ;) > > Okay, let's see... > > 1) Yes, I've left them in for the moment since I saw that they will be > ignored, and I'm playing with different projections... seems it > doesn't hurt. > > 2) Yes, it would appear zdat is an array of 0.0 > > 3) With contourf, I get a mismatch... not sure where: > ValueError: shape mismatch: objects cannot be broadcast to a single shape > File "c:\Python\mod\plotPickle.py", line 30, in <module> > fp_plot(z); > File "c:\Python\mod\plotf.py", line 55, in fp_plot > m.contourf(lons,lats,Zdat) > File > "c:\Python25\Lib\site-packages\matplotlib\toolkits\basemap\basemap.py", > line 2436, in contourf > xymask = NX.logical_or(NX.greater(x,1.e20),NX.greater(y,1.e20)) > > Here is the information about the numpy.arrays I'm using: > >>> N.shape(lons);N.shape(lats);N.shape(Zdat) > (360,) > (180,) > (180, 360) > > I tried: m.contourf(lons,lats,Zdat.transose()) as well, and receive > the same error. > > Thanks again! Try adding this just before the contourf call
lons, lats = numpy.meshgrid(lons, lats) x, y = m(lons, lats) # map is the Basemap instance then use cs = m.contourf(x,y,zdat) x,y have to be in map projection coordinates, and they must be 2D. -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX : (303)497-6449 NOAA/OAR/PSD R/PSD1 Email : [EMAIL PROTECTED] 325 Broadway Office : Skaggs Research Cntr 1D-124 Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users