To further my bid for the worlds dullest hobby award, I have been creating pie charts. I wanted to investigate generating Povray scene description files with Python. It turns out to be a winning combination; it didn't take long to build a system where I can generate a scene containing pie segments of various colors and angles. I can also vary the height and explode individual pie segments. Povray can render very high quality scenes so this system could be used to make pie charts for television or print.

pie

I will experiment with other charts, bar charts etc. Maybe I'll even generate an animation with it.

This isn't entirely just for the heck of it. I plan to write an article about it for the Python magazine.

This blog post was posted to It's All Geek to Me on Saturday February 16th, 2008 at 7:44PM
 

5 Responses to "Easy as Pie"

  • February 16th, 2008, 10:26 p.m.

    hehe, that looks awesome. I look forward to reading your article dude. Don't forget to do the next part of the facebook app in Turbogears as well ;)

  • February 16th, 2008, 11:56 p.m.

    Its already up. Thank goodness for weekends. :-)

  • February 17th, 2008, 12:05 p.m.

    Very smart use of POVray, and it makes pie charts not dull :-) I like 3D rendering/modelling very much (although I'm not very good at it) so you've got my full attention.

  • [...] just spend a couple of hours dusting off an old project of mine, that involved generating pretty 3D pie charts by combining Mako templates with the Povray scene description language. I improved the image [...]

  • [...] Rendu 3D de graphiques: génération de camemert via Python+PovRay , c’est complètement j’té mais j’aime bien [...]

Leave a Comment

You can use bbcode in the comment: e.g. [b]This is bold[/b], [url]http://www.willmcgugan.com[/url], [code python]import this[/code]
Preview Posting...
Previewing comment, please wait a moment...

My Tweets

Will McGugan

My name is Will McGugan. I am an unabashed geek, an author, a hacker and a Python expert – amongst other things!

Search for Posts
Possibly related posts
Tags
 
Popular Tags
 
Archives
2010
 
Recent Comments
This is very true, i believe that people need to be able to use a domain if they register it, ...
Hehe Thats a good tatoo idea ;) Have a nice day Joel
- Joel Shapiro on Powered by Ubuntu
Weirdly enough i am a junior dev on an internship. I am @ work and i was way too bored/out ...
I love the idea of locidesktop, and even more the minimal UI. Hope you'll keep it up!
Many thanks! I tried several solutions but the only one that worked was yours.
 
© 2008 Will McGugan.

A technoblog blog, design by Will McGugan