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
2009
 
Recent Comments
I've just recently read the book, got it from the university library actually. I didn't bother with any of the ...
- Gregory on A bad review
Hi Will, I brought your book from Amazon. I think its a great book. It has given me everything i ...
- P K on A bad review
yeah! red hair looks good!! thanks 4 your help in our project in science under maam b.
you have a nice decision.
@ Anatoliy But this is, hopefully, what you're looking for. His library is extensive enough that it provide the features ...
 
© 2008 Will McGugan.

A technoblog blog, design by Will McGugan