My favorites | Sign in
Project Logo
                
Code license: Apache License 2.0
Labels: python, graph, chart, charts, graphs
Show all Featured downloads:
graphy_1.0.tar.bz2
Show all Featured wiki pages:
UserGuide
People details
Project owners:
  zovirl, bugmaster

Graphy

Graphy is a simple Python library for generating charts. It tries to get out of the way and let you just work with your data. At the moment, it produces charts using the Google Chart API.

Quick Start

Here's a quick example, plotting average monthly rainfall for Sunnyvale, CA:

from graphy.backends import google_chart_api

monthly_rainfall = [3.2, 3.2, 2.7, 0.9, 0.4, 0.1, 0.0, 0.0, 0.2, 0.9, 1.8, 2.3]
months = 'Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec'.split()

chart = google_chart_api.LineChart(monthly_rainfall)
chart.bottom.labels = months
print chart.display.Img(400, 100)

That will print out an HTML img tag for this chart:

If you need more info, start with the UserGuide.









Hosted by Google Code