from jhplot import *
import os
cwd = os.getcwd()
s = """
@startdot
digraph foo {
node [style=rounded]
node1 [shape=box]
node2 [fillcolor=yellow, style="rounded,filled", shape=diamond]
node3 [shape=record, label="{ a | b | c }"]
node1 -> node2 -> node3
}
@enddot
"""
h=HDiagram(s)
# use the extensions EPS, PDF, SVG to change file format
h.export(cwd+"/hdiagram.png")
IView(cwd+"/hdiagram.png")