Introduction

Install

This sction is how to install Gruffy. from PyPI or source package.

Require

Gruffy is available on UNIX-like systems. and, Gruffy depend on the following libraries.

  • pgmagick : graphics module for Python, wrapper of GraphicsMagick.
  • GraphicsMagick : graphing library. 1.3.5 and higher version.
  • Boost.Python : used in pgmagick, 1.40 and higher version.

from PyPI

install using easy_install via PyPI

easy_install -ZU gruffy

or, using pip.

pip install --upgrade gruffy

from sourcecode package

git clone git://github.com/hhatto/gruffy.git
cd gruffy
python setup.py install

Basic Usage

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.

Gruffy's Graph

And More

More Documentation ...

TODO:no document

Table Of Contents

Previous topic

Welcome to Gruffy

Next topic

API Reference

This Page

English / Japanese