From: Jeff W. <js...@fa...> - 2007-12-14 20:48:11
|
Michael Hearne wrote: > Jeff - Yes! I'm working on implementing this now for my app... > > FYI, I got the following error: > TypeError: drawmapboundary() got an unexpected keyword argument > 'fill_color' > > > and again for 'lake_color' on the fillcontinents() method. > > I'm using 0.9.7, which I think is the latest released version... Mike: Those are new keywords in 0.9.8 (released a few weeks ago). -Jeff > > --Mike > On Dec 14, 2007, at 1:31 PM, Jeff Whitaker wrote: > >> from matplotlib.toolkits.basemap import Basemap >> >> import pylab >> >> fig = pylab.figure() >> >> ax1 = fig.add_axes([0.1,0.1,0.8,0.8]) >> >> m = Basemap(ax=ax1) >> >> m.drawcoastlines(linewidth=0.5) >> >> m.fillcontinents() >> >> ax2 = fig.add_axes([0.1,0.425,0.15,0.15]) >> >> m2 = Basemap(projection='ortho',lon_0=-105,lat_0=40,ax=ax2) >> >> m2.drawmapboundary(fill_color='aqua') >> >> m2.drawcoastlines(linewidth=0.1) >> >> m2.fillcontinents(color='coral',lake_color='aqua') >> >> pylab.show() >> > > > > > ------------------------------------------------------ > Michael Hearne > mh...@us... <mailto:mh...@us...> > (303) 273-8620 > USGS National Earthquake Information Center > 1711 Illinois St. Golden CO 80401 > Senior Software Engineer > Synergetics, Inc. > ------------------------------------------------------ > > -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX : (303)497-6449 NOAA/OAR/PSD R/PSD1 Email : Jef...@no... 325 Broadway Office : Skaggs Research Cntr 1D-124 Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg |