Re: Creating Pie Chart from Python

2005-09-16 Thread Will McGugan
Markus Weihs wrote: > Hi! > > I tried your script and got the following error: > > Traceback (most recent call last): > File "pie_chart.py", line 302, in OnPaint > self.OnDraw() > File "pie_chart.py", line 336, in OnDraw > segment.Draw(self.angle, self.rot, self.explode) >

Re: Creating Pie Chart from Python

2005-09-16 Thread Thierry Lam
Those python pie chart add ons are not very useful. For my specific pie chart, I have some 6-8 items to show up and some of them occupy only 2-5% of the pie. This cause the names and percentages to overlap each other. -- http://mail.python.org/mailman/listinfo/python-list

Re: Creating Pie Chart from Python

2005-09-16 Thread Markus Weihs
Hi! I tried your script and got the following error: Traceback (most recent call last): File "pie_chart.py", line 302, in OnPaint self.OnDraw() File "pie_chart.py", line 336, in OnDraw segment.Draw(self.angle, self.rot, self.explode) File "pie_chart.py", line 46, in Draw

Re: Creating Pie Chart from Python

2005-09-16 Thread John Hunter
> "Thierry" == Thierry Lam <[EMAIL PROTECTED]> writes: Thierry> Let's say I have the following data: 500 objects: -100 Thierry> are red -300 are blue -the rest are green Thierry> Is there some python package which can represen the above Thierry> information in a pie chart? I

Re: Creating Pie Chart from Python

2005-09-16 Thread paron
If you can wait a week or two, you can use svg and it will work for IE or Firefox. -- http://mail.python.org/mailman/listinfo/python-list

Re: Creating Pie Chart from Python

2005-09-15 Thread Giovanni Dall'Olio
PyChart? -- http://mail.python.org/mailman/listinfo/python-list

Re: Creating Pie Chart from Python

2005-09-15 Thread Ken Seehart
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 represen the above information > in a pie chart? > > Thanks > Thierry > What is the user interface context? Is it a web pa

Re: Creating Pie Chart from Python

2005-09-15 Thread Fredrik Lundh
Thierry Lam wrote: > In a web browser, having a pie chart in some image format will be great. here's a variation of jepler's tkinter example, using aggdraw to do the drawing and PIL to generate the image. tweak as necessary. # http://effbot.org/zone/draw-agg.htm from aggdraw import * # http://

Re: Creating Pie Chart from Python

2005-09-15 Thread Larry Bates
ReportLab Graphics. -Larry Bates 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? > > Thanks > Thierry > -- http://mail.

Re: Creating Pie Chart from Python

2005-09-15 Thread Thierry Lam
In a web browser, having a pie chart in some image format will be great. -- http://mail.python.org/mailman/listinfo/python-list

Re: Creating Pie Chart from Python

2005-09-15 Thread Fredrik Lundh
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? on a screen? in a web browser? on a printer? -- http://mail.python.

Re: Creating Pie Chart from Python

2005-09-15 Thread jepler
There are many. One choice would be Tkinter's Canvas. def frac(n): return 360. * n / 500 import Tkinter c = Tkinter.Canvas(width=100, height=100); c.pack() c.create_arc((2,2,98,98), fill="red", start=frac(0), extent = frac(100)) c.create_arc((2,2,98,98), fill="blue", start=frac(100), extent = fr

Re: Creating Pie Chart from Python

2005-09-15 Thread Will McGugan
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.p

Creating Pie Chart from Python

2005-09-15 Thread Thierry Lam
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 represen the above information in a pie chart? Thanks Thierry -- http://mail.python.org/mailman/listinfo/python-list

Creating Pie Chart from Python

2005-09-15 Thread Thierry Lam
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? Thanks Thierry -- http://mail.python.org/mailman/listinfo/python-list