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.
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