Re: [Matplotlib-users] matplotlib 1.1 "TypeError: a float is required" problem

2012-01-06 Thread Mingkui Li
Yes, I think this is the origin of the Error. Thank you all! BTW, why the email title of all other people posts begin with '[matplotlib-user]'? does this should be added by hand every time when I post a topic? On Sat, Jan 7, 2012 at 11:44 AM, Michiel de Hoon wrote: > The problem seems to origina

Re: [Matplotlib-users] matplotlib 1.1 "TypeError: a float is required" problem

2012-01-06 Thread Michiel de Hoon
The problem seems to originate from this line in lib/matplotlib/sankey.py:     patch = PathPatch(Path(vertices, codes),   fc=kwargs.pop('fc', kwargs.pop('facecolor',     '#bfd1d4')), # Custom defaults   lw=kwar

[Matplotlib-users] Contour label positioning

2012-01-06 Thread Gökhan Sever
Hello group, I am trying to align contour labels on my plot. Using the latest git clone I was able to position the labels somewhat nicer than the default positioning. (Following from https://github.com/matplotlib/matplotlib/issues/613 ) However, it requires manual specification of right data coord

Re: [Matplotlib-users] matplotlib 1.1 "TypeError: a float is required" problem

2012-01-06 Thread Michael Droettboom
I've filed a bug for this here: https://github.com/matplotlib/matplotlib/issues/662 Mike On 01/06/2012 11:55 AM, David Hoese wrote: Hi Ken, You're getting that error because you probably don't have Qt4 installed on your Mac (I do). I'm not sure what backends come with matplotlib and will w

Re: [Matplotlib-users] cycling mechanism

2012-01-06 Thread Benjamin Root
On Thu, Jan 5, 2012 at 3:18 PM, Ryan May wrote: > On Thu, Jan 5, 2012 at 2:59 PM, Daniel Hyams wrote: > > Right, __slots__ is definitely not a good idea to use except in very > > specific situations. I would strongly recommend against its usage here. > > > > http://groups.google.com/group/comp.

Re: [Matplotlib-users] matplotlib 1.1 "TypeError: a float is required" problem

2012-01-06 Thread David Hoese
Hi Ken, You're getting that error because you probably don't have Qt4 installed on your Mac (I do). I'm not sure what backends come with matplotlib and will work for you (maybe someone here knows). You can use any of the following: GTK GTKAgg GTKCairo CocoaAgg FltkAgg MacOSX QtAgg Qt4Agg T

Re: [Matplotlib-users] matplotlib 1.1 "TypeError: a float is required" problem

2012-01-06 Thread Mingkui Li
Hi, Dave, I tried the two lines of code you posted, but when I ran the example I mentioned above I got such error: ImportError: No module named sip Seems I can't import any other libs from matplotlib after "matplotlib.use("Qt4Agg")" I'm kind of a newbie, sorry. Ken On Sat, Jan 7, 2012 at 12:

Re: [Matplotlib-users] matplotlib 1.1 "TypeError: a float is required" problem

2012-01-06 Thread Mingkui Li
Thank you, Mike. I'll try the Linux version to find out. On Sat, Jan 7, 2012 at 12:06 AM, Michael Droettboom wrote: > I suspect this bug is specific to the macosx backend. Can you switch to > another backend and confirm it doesn't happen there? (I can't reproduce it > on Linux). > > Mike > >

Re: [Matplotlib-users] matplotlib 1.1 "TypeError: a float is required" problem

2012-01-06 Thread David Hoese
I experienced the same problem on the macosx backend, switched to Qt4Agg and no problems. import matplotlib matplotlib.use("Qt4Agg") -Dave On 1/6/12 10:08 AM, md...@stsci.edu wrote: > I suspect this bug is specific to the macosx backend. Can you switch to > another backend and confir

Re: [Matplotlib-users] matplotlib 1.1 "TypeError: a float is required" problem

2012-01-06 Thread Michael Droettboom
I suspect this bug is specific to the macosx backend. Can you switch to another backend and confirm it doesn't happen there? (I can't reproduce it on Linux). Mike On 01/06/2012 10:54 AM, Mingkui Li wrote: I just updated matplotlib to 1.1 and want try the new features Sankey Diagrams

[Matplotlib-users] matplotlib 1.1 "TypeError: a float is required" problem

2012-01-06 Thread Mingkui Li
I just updated matplotlib to 1.1 and want try the new featuresSankey Diagrams and Animation but when I try the api example code: sankey_demo_basics.py I got the error messages as below: == Traceback (most recent call las