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
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> (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  : [EMAIL PROTECTED]
325 Broadway                Office : Skaggs Research Cntr 1D-124
Boulder, CO, USA 80303-3328 Web    : http://tinyurl.com/5telg


-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to