On Wednesday, June 20, 2012, Nicolas wrote:
Hi all

I have installed successively basemap 1.0.3 and 1.0.4 on top of my EPD
7.3 (linux x86_64) running on a linux ubuntu 11.10.

archives downloaded from
http://sourceforge.net/projects/matplotlib/files/matplotlib-toolkits/basemap-1.0.X/

My matplotlib version is 1.1.0 and I have checked that indeed the call
to mpl_toolkits.basemap returns the correct version (I have installed
successively 1.0.3 and then cleaned up and installed 1.0.4)

the traceback is

"""
Traceback (most recent call last):
 File "streamplot_demo.py", line 32, in <module>
 m.streamplot(x,y,udat,vdat,color=speed,linewidth=2,density=2,cmap=plt.cm.spectral)
 File "/home/nicolasf/epd/lib/python2.7/site-packages/mpl_toolkits/basemap/__init__.py",
line 3370, in streamplot
 ret =  ax.streamplot(x,y,u,v,*args,**kwargs)
AttributeError: 'AxesSubplot' object has no attribute 'streamplot'
"""

the doc string for streamplot_demo.py (in the example folder of the
basemap1.0.4 sources) states that it requires the vectorplot scikit,
which I have installed but been unable to get working (complains about
missing lic_internal module ...)

what is confusing is that the entry for streamplot_demo in the README
(from basemap_1.0.4-examples) states that it "shows the new matplotlib
streamplot method to visualize wind fields"

Do I need to upgrade matplotlib to the development version ?


Yes.  Streamplot hasn't been officially released yet.  Maybe Basemap should check for the function first?

Ben Root