PyGTK Chart Widget

June 6, 2009 at 11:11 am
filed under programming
Tagged , , ,

pygtkChart is a chart widget for GTK that offers line graphs and pie charts. It’s simple to use, but it is lacking one feature that I really wanted: bar charts. I added a bar chart widget to the package, but I have not been able to get in touch with the original author to contribute the code back. So, here it is.

Download: Clone from git://github.com/notmyname/pygtkChart.git or view the source at http://github.com/notmyname/pygtkChart/tree

Installation: $ python setup.py build && sudo python setup.py install

Description: I have added two new classes: BarChart and MultiBarChart. BarChart provides a simple bar chart. MultiBarChart allows for grouped bars. The code is fairly well commented and should be easy to follow.

BarChart example

BarChart example


MultiBarChart example

MultiBarChart example

These images are screenshots of bar_chart_test.py and multi_bar_chart_test.py, both found in bar_chart_test.tgz

UPDATE: a new version has been released

4 comments

RSS / trackback

respond

  1. oscar andres

    on June 17, 2009 at 5:28 pm

    Hi, I see you work about pyGTKchart and I think is good, I am beginner python programmer and I will like colaborate in this software.

  2. John

    on June 18, 2009 at 11:31 am

    @oscar andres
    Fantastic. The code is on git://github.com/notmyname/pypastry.git. Clone the repository and have fun. When you have some changes, submit a pull request, and I’ll take a look. Once you are on github, I can add you as a collaborator to the project.

  3. Sven Festersen

    on June 25, 2009 at 8:43 am

    Hi John!
    I’m the original author ;-)
    I like your bar chart extension. I did not have time to take a closer look at your code yet, but it looks great.

    btw: you can contact me at any time by writing an email to sven@sven-festersen.de. If you did that I have to check my spam filter settings….

  4. John

    on June 25, 2009 at 5:22 pm

    @ Sven Festersen
    I think you’ve done a great job with the package. I’d love to talk further about collaboration. I have just sent you an email about this.