Easy Pie Charts/Graphs/Plots on Win32

Gary anon at nospam.com
Sun Feb 9 14:44:50 EST 2003


Need to easily create plots, graphs, and charts using Python? 
I've created a quick example that uses the Office Web Components (OWC) available on most MS Windows installations. The example code shows how to create a chart then display it using wxPython. However, wxPython is not required for creating charts. If you just want to create charts using Python, you can use OWC to create the image, then save it to disk as a png, jpg, or gif file.
Finally, Windows XP's OWC10 has some additional features, including the ability to return the graph in memory so you don't have to save it to disk.
If you don't have WinXP, you can uncomment some lines in the code to use the example on your system. Play and see what works for you.
The example code is available at GaryBoone.com.





More information about the Python-list mailing list