Revision: 4428
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4428&view=rev
Author:   jswhit
Date:     2007-11-23 09:54:40 -0800 (Fri, 23 Nov 2007)

Log Message:
-----------
update basemap example

Modified Paths:
--------------
    trunk/py4science/examples/basemap5.py
    trunk/py4science/examples/skel/basemap5_skel.py

Modified: trunk/py4science/examples/basemap5.py
===================================================================
--- trunk/py4science/examples/basemap5.py       2007-11-23 13:47:36 UTC (rev 
4427)
+++ trunk/py4science/examples/basemap5.py       2007-11-23 17:54:40 UTC (rev 
4428)
@@ -22,12 +22,9 @@
 # create Basemap instance for mollweide projection.
 # coastlines not used, so resolution set to None to skip
 # continent processing (this speeds things up a bit)
-m = Basemap(projection='moll',lon_0=lon_0,lat_0=lat_0,resolution='l')
+m = Basemap(projection='moll',lon_0=lon_0,lat_0=lat_0,resolution=None)
 # compute map projection coordinates of grid.
 x, y = m(*numpy.meshgrid(lons, lats))
-# plot with contour
-#CS = m.contour(x,y,sst,20,linewidths=0.5,colors='k')
-#CS = m.contourf(x,y,sst,20,cmap=cmap)
 # plot with pcolor
 im = m.pcolormesh(x,y,sst,shading='flat',cmap=cmap)
 # draw parallels and meridians, but don't bother labelling them.

Modified: trunk/py4science/examples/skel/basemap5_skel.py
===================================================================
--- trunk/py4science/examples/skel/basemap5_skel.py     2007-11-23 13:47:36 UTC 
(rev 4427)
+++ trunk/py4science/examples/skel/basemap5_skel.py     2007-11-23 17:54:40 UTC 
(rev 4428)
@@ -30,9 +30,6 @@
 m = Basemap(projection=projection,lon_0=lon_0,lat_0=lat_0,resolution=None)
 # compute map projection coordinates of grid.
 x, y = m(*numpy.meshgrid(lons, lats))
-# plot with contour
-#CS = m.contour(x,y,sst,20,linewidths=0.5,colors='k')
-#CS = m.contourf(x,y,sst,20,cmap=cmap)
 # plot with pcolor
 im = m.pcolormesh(x,y,sst,shading='flat',cmap=cmap)
 # draw parallels and meridians, but don't bother labelling them.


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to