Skip to main content

Gruffy is Python implemetation of Gruff(Ruby Graphing Library)

Project description

About

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

This module using pgmagick (GraphicsMagick) .

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')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gruffy-0.1.4.tar.gz (13.9 kB view details)

Uploaded Source

File details

Details for the file gruffy-0.1.4.tar.gz.

File metadata

  • Download URL: gruffy-0.1.4.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for gruffy-0.1.4.tar.gz
Algorithm Hash digest
SHA256 ffe6914f2c67327f3f59cde11fed84c9a9b21a12e302f1c93dc620f7a41e4d77
MD5 8faec60b278ae50da13fda7f529664cc
BLAKE2b-256 f43448c07fd6f5e20729d28fde168e624d789080b5ea319b6821c477b3822e3c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page