problem with streamplot method in basemap-1.0.3(4)

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 ?

thanks a lot in advance for any help on that one ...

···

--
-------------------------------------------------------------------------------------
Dr. Nicolas Fauchereau
Climate Scientist – National Climate Centre
National Institute of Water and Atmospheric Research (NIWA) Ltd.
41 Market Place
Viaduct Precinct, Auckland
NEW ZEALAND
Tel: +64 (0)9 375 2053
--------------------------------------------------------------------------------------
"It is a mistake to think you can solve any major problems just with potatoes.".
Douglas Adams.

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

Ben Root

···

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

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 ?

Thanks Ben

so streamplot "will" be part of a future stable release of matplotlib
then ? one does not need the scikits.vectorplot installed ?

I will try and pull the latest development version of matplotlib and
install it (linux and mac os X), and then come back to the list to
give some feedbacks

cheers

Nico

···

On 21 June 2012 11:37, Benjamin Root <ben.root@...1304...> wrote:

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

--
-------------------------------------------------------------------------------------
Dr. Nicolas Fauchereau
Climate Scientist – National Climate Centre
National Institute of Water and Atmospheric Research (NIWA) Ltd.
41 Market Place
Viaduct Precinct, Auckland
NEW ZEALAND
Tel: +64 (0)9 375 2053
--------------------------------------------------------------------------------------
"It is a mistake to think you can solve any major problems just with potatoes.".
Douglas Adams.

Thanks Ben

so streamplot "will" be part of a future stable release of matplotlib
then ? one does not need the scikits.vectorplot installed ?

No, it does not. That's an error created by copy and pasting code from lic_demo.py. I should not have included that example in the release at all, since streamplot is not in the released version of matplotlib.

-Jeff

···

On 6/20/12 5:50 PM, Nicolas wrote:

I will try and pull the latest development version of matplotlib and
install it (linux and mac os X), and then come back to the list to
give some feedbacks

cheers

Nico

On 21 June 2012 11:37, Benjamin Root<ben.root@...1304...> wrote:

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