Dear colleagues, 

Wonder if there is a solution for prejecting a basemap, in my task, its a 
river shapefile, onto a 3D surface plot using Matplotlib. 

I've tried to use the Axes3D.ax.add_collection3d(rivers) method but my 
test did throw an error message like this. 

# tentatively add basemap to 3D 
m = 
Basemap(llcrnrlon=llclon,llcrnrlat=llclat,urcrnrlon=urclon,urcrnrlat=urclat, 
resolution ='l',area_thresh=1000.)
river4 = 
m.readshapefile('../maps/KEN_water_lines_dcw','rivers4',drawbounds=True,color='SlateBlue',
 
linewidth=1)
ax.add_collection3d(river4)

Error thrown at the add_collection3d is:   AttributeError: 'tuple' object 
has no attribute 'set_label'. 

Any hints or references to a similar example code are welcome. 

Regards, 
Claude


Claude Falbriard 
Certified IT Specialist L2 - Middleware
AMS Hortolândia / SP - Brazil
phone:    +55 13 9 9760 0453
cell:         +55 13 9 8117 3316
e-mail:    clau...@br.ibm.com
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to