Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 696 Bytes

File metadata and controls

27 lines (19 loc) · 696 Bytes

PyPI version badge

streamfig

Python class to generate describe stream graphs in fig format.

Documentation is in doc/, and some code examples are in examples/. The PNG output from all the examples is in images/ . Below is the result from all the examples.

Example of output of the streamfig package

Get started

First, write some python code:

import streamfig

s = streamfig.StreamFig()
s.addNode("u")
s.addNode("v")
s.addLink("u", "v", 1, 3)
s.save("my_first_stream.fig")

Then, generate your image:

python3 my_first_stream.py; fig2dev -Lpng my_first_stream.fig > my_first_stream.png