Skip to content

Python library and command line for creating very small graphs

Notifications You must be signed in to change notification settings

talwrii/tinygraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tinygraph

Python library and command line program to produce very small graphs without any wasted pixel for things like labels and axes. Has good xpm support

Usage

Command line

python -m tinygraph 1 2 3 4 5 > graph.xpm
python -m tinygraph 1 2 3 4 5 -o graph.bmp
# Big pixels on quite a large graph
python -m tinygraph 1 2 3 4 5 -o graph.bmp -p 3 -H 20

Python

import tinygraph
image = tinygraph.tiny_graph(10, [1,2,3,4,5])
image.save('graph.xpm')
image.save('graph.bmp')

dzengraph.py

This library is well-suited for use with dzen2. A utility dzengraph is provided to make this a little easier

Usage

    {python -m dzengraph graph1 1 2 3 4 5 5 5 ; sleep 10 } | dzen2

About

Python library and command line for creating very small graphs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages