|
From: <cl...@br...> - 2014-07-17 12:54:05
|
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: cl...@br...
|