Revision: 4479
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4479&view=rev
Author: jswhit
Date: 2007-11-28 04:34:04 -0800 (Wed, 28 Nov 2007)
Log Message:
-----------
use fill_color kwarg to mapboundary to color oceans (instead of axes background)
Modified Paths:
--------------
trunk/toolkits/basemap/examples/hurrtracks.py
Modified: trunk/toolkits/basemap/examples/hurrtracks.py
===================================================================
--- trunk/toolkits/basemap/examples/hurrtracks.py 2007-11-28 02:48:38 UTC (rev 4478)
+++ trunk/toolkits/basemap/examples/hurrtracks.py 2007-11-28 12:34:04 UTC (rev 4479)
@@ -9,9 +9,8 @@
m = Basemap(llcrnrlon=-100.,llcrnrlat=0.,urcrnrlon=-20.,urcrnrlat=57.,
projection='lcc',lat_1=20.,lat_2=40.,lon_0=-60.,
resolution ='l',area_thresh=1000.)
-# create figure, add axes.
+# create figure.
fig=p.figure()
-fig.add_axes([0.1,0.1,0.8,0.8],axisbg='#99ffff')
# read shapefile.
shp_info = m.readshapefile('huralll020','hurrtracks',drawbounds=False)
print shp_info
@@ -39,7 +38,8 @@
# draw coastlines, meridians and parallels.
m.drawcoastlines()
m.drawcountries()
-m.fillcontinents(color='#cc9966')
+m.drawmapboundary(fill_color='#99ffff')
+m.fillcontinents(color='#cc9966',lake_color='#99ffff')
m.drawparallels(p.arange(10,70,20),labels=[1,1,0,0])
m.drawmeridians(p.arange(-100,0,20),labels=[0,0,0,1])
p.title('Atlantic Hurricane Tracks (Storms Reaching Category 4, 1851-2004)')
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|