Re: [Matplotlib-users] DO NOT round values

2009-09-15 Thread Michael Droettboom
For pie graphs, you can pass a "autopct" keyword argument, which is a format string for the values. For example: pie([63.7, 36.3], autopct="%.03f") will display the values with 3 decimal places. Cheers, Mike Gewton Jhames wrote: > Hello everyone, > when I plot, just for example, a pie graph w

[Matplotlib-users] DO NOT round values

2009-09-15 Thread Gewton Jhames
Hello everyone, when I plot, just for example, a pie graph with two values: 63.7 and 36.3, matplotlib rounds this values to 64 and 36. What I must do for matplotlib DO NOT round those values? Thanks -- Come build with us! T

Re: [Matplotlib-users] matplotlib 0.99.1rc1 available for testing

2009-09-15 Thread Werner F. Bruhin
Hi Eric, Eric Firing wrote: > - backend_wx does a wxPython version check which does not work when the application is py2exe'd - tracker item 2858638 added and the above wiki page also contains a work around/correction suggestion. >>> OK, we will take a look at

Re: [Matplotlib-users] matplotlib 0.99.1rc1 available for testing

2009-09-15 Thread Eric Firing
>>> - backend_wx does a wxPython version check which does not work when the >>> application is py2exe'd - tracker item 2858638 added and the above wiki page >>> also contains a work around/correction suggestion. >>> >> OK, we will take a look at this too. >> > Maybe instead of using "impor

Re: [Matplotlib-users] Tutorial to object-oriented API

2009-09-15 Thread Alan G Isaac
If you are just trying to get started, this might help: http://econpy.googlecode.com/svn/trunk/software4econ.xhtml#mpl_hints Ow, see John's list of suggestions. Alan Isaac -- Come build with us! The BlackBerry® Develope

Re: [Matplotlib-users] Tutorial to object-oriented API

2009-09-15 Thread John Hunter
On Tue, Sep 15, 2009 at 8:10 AM, Florian Lindner wrote: > Hello, > > all tutorials I've found so far are about the stateful pylab API. > Since I've never worked with Matlab and grew up with doing things in > an OOP way using the pylab interface feels very unnatural for me. > > Are there any tutori

[Matplotlib-users] Tutorial to object-oriented API

2009-09-15 Thread Florian Lindner
Hello, all tutorials I've found so far are about the stateful pylab API. Since I've never worked with Matlab and grew up with doing things in an OOP way using the pylab interface feels very unnatural for me. Are there any tutorials to matplotlib that utilise the more pythonic API? Just some

Re: [Matplotlib-users] Strange error after installing matplotlib from macports

2009-09-15 Thread Damon McDougall
Hi Jouni, Wow, that worked a treat. Thank you very much! Maybe you should post that to the -devel mailing list, too! On the computer that this bug didn't occur, the ~/Library/Fonts directory is completely empty! I wonder where it is looking for lcmssi8.afm if it isn't in ~/Library/Fonts Ye

Re: [Matplotlib-users] Strange error after installing matplotlib from macports

2009-09-15 Thread Jouni K . Seppänen
Damon McDougall writes: > (Pdb) p fh > (Pdb) p line > 'C 0 ; WX 708.333 ; N Gamma ; B 0 0 836.364 684.027 ;' Failing on this line is a bug in matplotlib, since the AFM spec says that bounding-box coordinates are "numbers", not "integers". Apparently not many AFM files use that precise bounding

Re: [Matplotlib-users] Strange error after installing matplotlib from macports

2009-09-15 Thread Damon McDougall
Hi Jouni, Sure. Here is the output from your suggestion: Python 2.5.4 (r254:67916, Sep 15 2009, 11:16:42) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from pdb import pm >>> from matplotlib.figure import Figure Tracebac

Re: [Matplotlib-users] Strange error after installing matplotlib from macports

2009-09-15 Thread Jouni K . Seppänen
Damon McDougall writes: > >>> from matplotlib.figure import Figure > ValueError: invalid literal for int() with base 10: '836.364' > > I have no clue what is going on. Does anybody have any ideas? Could you do the following: (if you already exited that Python shell and can't reproduce the prob

[Matplotlib-users] Strange error after installing matplotlib from macports

2009-09-15 Thread Damon McDougall
Hi All, After having installed Snow Leopard (10.6), I got some silly errors with libraries (installed via Macports) using deprecated functions Apple no longer supports, so I trashed the whole of Macports and reinstalled it. I then installed py25-matplotlib and get the following error messa

Re: [Matplotlib-users] matplotlib 0.99.1rc1 available for testing

2009-09-15 Thread Werner F. Bruhin
John, John Hunter wrote: > On Mon, Sep 14, 2009 at 10:13 AM, Werner F. Bruhin > wrote: > > >> Just installed it on Vista and saw the following issues so far. >> > > Hey Werner, thanks for the reports. > You are welcome - anyhow I think it would be more appropriate for me to thank you