Graphication

A Cairo-based graphing library
Download

Graphication Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Andrew Godwin
  • Publisher web site:

Graphication Tags


Graphication Description

A Cairo-based graphing library Graphication is a Cairo-based graphing library.Graphication is a Python library for, essentially, making pretty graphs. They’re not pixel-perfectly mathematically accurate, they don’t necessarily suit all applications, and can only plot discrete data (no functions for you!).However, if you want nice ways to present data to your users, you’re in the right place.Where it’s usedGraphication has mostly evolved over time to fit the needs of the two main projects it is used in, LastGraph and The Carbon Account. Being more of an evolved library, it’s a bit convoluted in places, but it does work.ExamplesI’m a fond believer in code examples to give people an idea of how a library works:from graphication import *from graphication.wavegraph import WaveGraph# Create the data set - we'll have one seriesseries_set = SeriesSet()series = Series("Something", {0:0.5, 1:1.0, 3:0.2}, "#369")series_set.add_series(series)# Create a WaveGraph using a simple scale from 0-3.scale = SimpleScale(0, 3)wg = WaveGraph(series_set, scale)# We create an output and add the wavegraph to itoutput = FileOutput()output.add_item(wg, x=0, y=0, width=400, height=150)# Save to an imageoutput.write("png", "test.png") Requirements: · Python


Graphication Related Software