Creating Pie Chart from Python

Will McGugan news at NOwillmcguganSPAM.com
Thu Sep 15 11:19:17 EDT 2005


Thierry Lam wrote:
> Let's say I have the following data:
> 
> 500 objects:
> -100 are red
> -300 are blue
> -the rest are green
> 
> Is there some python package which can represent the above information
> in a pie chart?
> 

I wrote a wxPython control to render pretty 3D pie charts (see attached 
piechartwindow.py). It can also be used to pre-generate images such as 
this..

http://www.foodfileonline.com/static/piecharts/pie01009.jpg

Code is public domain.


Will McGugan
-- 
http://www.willmcgugan.com
"".join({'*':'@','^':'.'}.get(c,0) or chr(97+(ord(c)-84)%26) for c in 
"jvyy*jvyyzpthtna^pbz")
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: piechartwindow.py
URL: <http://mail.python.org/pipermail/python-list/attachments/20050915/907e44aa/attachment.ksh>


More information about the Python-list mailing list