<commit_before>About
=====
Gruffy is a yet another Python Graphing Library.
inspired by `Gruff`_ (Ruby Graphing Library).

This module using `pgmagick`_ (GraphicsMagick) .

.. _`Gruff`: http://nubyonrails.com/pages/gruff
.. _`pgmagick`: http://pypi.python.org/pypi/pgmagick/


Install
=======
Install from PyPI:

    $ pip install gruffy


Require
=======
`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')<commit_msg>update: readme.rst<commit_after>About
=====
Gruffy is a yet another Python Graphing Library.
inspired by `Gruff`_ (Ruby Graphing Library).

This module using `pgmagick`_ (GraphicsMagick) .

.. _`Gruff`: http://nubyonrails.com/pages/gruff
.. _`pgmagick`: http://pypi.python.org/pypi/pgmagick/


Install
=======
Install from PyPI:

    $ pip install gruffy


Require
=======
`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')


Getting the source
==================
Download from github_ or PyPI_

.. _github: http://github.com/hhatto/gruffy
.. _PyPI: http://pypi.python.org/pypi/gruffy
{'fraction_non_alphanumeric': 0.19078947368421054, 'fraction_numerical': 0.043522267206477734, 'mean_word_length': 3.279220779220779, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1237811', 'n_tokens_mistral': 877, 'n_tokens_neox': 737, 'n_words': 206}