DO NOT round values

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

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 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! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
------------------------------------------------------------------------

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options
  
--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA