File: README

package info (click to toggle)
graphy 1.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch, wheezy
  • size: 288 kB
  • ctags: 443
  • sloc: python: 2,224; makefile: 25; sh: 7
file content (27 lines) | stat: -rw-r--r-- 859 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Graphy

Graphy is a chart library for python. It tries to get out of the way and just
let you work with your data.

For more information, see http://code.google.com/p/graphy/

For license info, see the LICENSE file.

INSTALLATION:
No installer yet, so just manually copy graphy/ into python-lib/graphy.

QUICK START:
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.Url(400, 100)

EXAMPLES:
The examples in the examples/ directory assume graphy is in the PYTHONPATH.
If just want to run them without installing graphy first, you will need to do
something like this:
  $ cd examples
  $ PYTHONPATH=.. ./traffic.py