Gruffy is Python implemetation of Gruff(Ruby's Graphing Library http://nubyonrails.com/pages/gruff)
Python
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs
example
gruffy
test
.gitignore
LICENSE
MANIFEST.in
Makefile
README.rst
setup.py

README.rst

Gruffy

Python Graphing Library

About

Gruffy is a yet another Python Graphing Library. inspired by Gruff (Ruby Graphing Library).

This module using pgmagick (GraphicsMagick) .

Installation

Install from PyPI:

$ pip install gruffy

Requirements

pgmagick module.

package install on Ubuntu:

$ apt-get install libgraphicsmagick++-dev
$ apt-get install libboost-python1.40-dev
$ pip install pgmagick

Basic Usage

Bar Graph Sample:

from gruffy import Bar

g = Bar()
g.title = "Gruffy's Graph"

g.data("Apples", [1, 2, 3, 4, 4, 3])
g.data("Oranges", [4, 8, 7, 9, 8, 9])
g.data("Watermelon", [2, 3, 1, 5, 6, 8])
g.data("Peaches", [9, 9, 10, 8, 7, 9])

g.labels = {0: '2003', 2: '2004', 4: '2005'}

g.write('sample.png')

Documentation

Gruffy Documentation

Links