Hi all

FYI, the streamplot example does work with the dev. version of
matplotlib (that I pulled out from github, more specifically
matplotlib-matplotlib-v1.1.1-rc2-664-ga2d44d5.zip)

thanks

Nico

On 22 June 2012 02:51,  <matplotlib-users-requ...@lists.sourceforge.net> wrote:
> Send Matplotlib-users mailing list submissions to
>        matplotlib-users@lists.sourceforge.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> or, via email, send a message with subject or body 'help' to
>        matplotlib-users-requ...@lists.sourceforge.net
>
> You can reach the person managing the list at
>        matplotlib-users-ow...@lists.sourceforge.net
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Matplotlib-users digest..."
>
>
> Today's Topics:
>
>   1. problem with streamplot method in basemap-1.0.3(4) (Nicolas)
>   2. Re: problem with streamplot method in     basemap-1.0.3(4)
>      (Benjamin Root)
>   3. Re: problem with streamplot method in     basemap-1.0.3(4) (Nicolas)
>   4. Re: problem with streamplot method in     basemap-1.0.3(4)
>      (Jeff Whitaker)
>   5. Can boxplot handle np.NaN? (Wouter Overmeire)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 21 Jun 2012 11:28:55 +1200
> From: Nicolas <nicolas.faucher...@gmail.com>
> Subject: [Matplotlib-users] problem with streamplot method in
>        basemap-1.0.3(4)
> To: matplotlib-users@lists.sourceforge.net
> Message-ID:
>        <CAJgfWuFpjRzeg-nR7exwwyH-QacmynxzLD-SQi+zMKZjk=z...@mail.gmail.com>
> Content-Type: text/plain; charset=windows-1252
>
> 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.
>
>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 20 Jun 2012 19:37:04 -0400
> From: Benjamin Root <ben.r...@ou.edu>
> Subject: Re: [Matplotlib-users] problem with streamplot method in
>        basemap-1.0.3(4)
> To: Nicolas <nicolas.faucher...@gmail.com>
> Cc: "matplotlib-users@lists.sourceforge.net"
>        <matplotlib-users@lists.sourceforge.net>
> Message-ID:
>        <CANNq6FkQcqCHUCuR5n9wDhC4irDTq6if0BWbL+t-=4tpuyy...@mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> 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
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 3
> Date: Thu, 21 Jun 2012 11:50:48 +1200
> From: Nicolas <nicolas.faucher...@gmail.com>
> Subject: Re: [Matplotlib-users] problem with streamplot method in
>        basemap-1.0.3(4)
> To: Benjamin Root <ben.r...@ou.edu>
> Cc: "matplotlib-users@lists.sourceforge.net"
>        <matplotlib-users@lists.sourceforge.net>
> Message-ID:
>        <cajgfwuh8f6veegyhzhmei_0ehgo+xgcqt0w8yvdjen5v5t7...@mail.gmail.com>
> Content-Type: text/plain; charset=windows-1252
>
> 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.r...@ou.edu> 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.
>
>
>
> ------------------------------
>
> Message: 4
> Date: Wed, 20 Jun 2012 20:58:41 -0600
> From: Jeff Whitaker <jsw...@fastmail.fm>
> Subject: Re: [Matplotlib-users] problem with streamplot method in
>        basemap-1.0.3(4)
> To: matplotlib-users@lists.sourceforge.net
> Message-ID: <4fe28de1.6090...@fastmail.fm>
> Content-Type: text/plain; charset=windows-1252; format=flowed
>
> On 6/20/12 5:50 PM, Nicolas wrote:
>> 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
>>
>> 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.r...@ou.edu>  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
>>
>>
>
>
>
>
> ------------------------------
>
> Message: 5
> Date: Thu, 21 Jun 2012 16:51:35 +0200
> From: Wouter Overmeire <loda...@gmail.com>
> Subject: [Matplotlib-users] Can boxplot handle np.NaN?
> To: matplotlib-users@lists.sourceforge.net
> Message-ID:
>        <CAKS7gT6TkvK5EH3n1iQ1ps-+jP5PD38E+Ryna=izd5jjwo8...@mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
> Is boxplot supposed to be able to handle nan?
> I assumed it would, but got some unexpected results when trying so.
> In the example below i try to create boxplot for three lists a,b,c holding
> samples from normal distribution. Both a and b hold nan, c not. As you can
> see in the attached screenshot only the boxplot for c looks ok.
>
> In [145]: matplotlib.__version__
> Out[145]: '1.1.0'
>
> In [146]: np.__version__
> Out[146]: '1.6.1'
>
> In [147]: a = [np.random.randn() if i % 5 == 0 else np.NaN for i in
> range(1000)]
>
> In [148]: b = [np.random.randn() if i < 500 else np.NaN for i in
> range(1000)]
>
> In [149]: c = np.random.randn(1000)
>
> In [150]: d = boxplot([a, b, c])
>
> In [151]: d['medians'][0].get_data()
> Out[151]: (array([ 0.85,  1.15]), array([ nan,  nan]))
>
> In [152]: d['medians'][1].get_data()
> Out[152]: (array([ 1.85,  2.15]), array([ nan,  nan]))
>
> In [153]: d['medians'][2].get_data()
> Out[153]: (array([ 2.85,  3.15]), array([ 0.01285423,  0.01285423]))
>
> Wouter
> -------------- next part --------------
> An HTML attachment was scrubbed...
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: boxplot_nan.png
> Type: image/png
> Size: 9648 bytes
> Desc: not available
>
> ------------------------------
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>
> ------------------------------
>
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
> End of Matplotlib-users Digest, Vol 73, Issue 32
> ************************************************



-- 
-------------------------------------------------------------------------------------
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.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to