This sction is how to install Gruffy. from PyPI or source package.
Gruffy is available on UNIX-like systems. and, Gruffy depend on the following libraries.
install using easy_install via PyPI
easy_install -ZU gruffy
or, using pip.
pip install --upgrade gruffy
git clone git://github.com/hhatto/gruffy.git
cd gruffy
python setup.py install
from gruffy import Line
g = Line()
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: '2011', 2: '2013', 4: '2015'}
g.write()
Now, execute script.
python first.py
create to the graph.png file.