from streamsvg import Drawing s = Drawing(alpha=0, omega=4) s.addNode("a", [(0, 2)]) s.addNode("b") s.addNode("c", [(2, 4)]) s.addLink("a", "b", 0, 2) s.addLink("b", "c", 2, 4) s.addTimeLine(ticks=1)
from streamsvg import Drawing s = Drawing() s.addNode("a") s.addNode("b") s.addNode("c") s.addNode("d") s.addLink("a", "b", 0, 4, color="#BBBBBB", width=2) s.addLink("a", "b", 6, 9, color="#BBBBBB", width=2) s.addLink("a", "c", 2, 5, height=0.4, width=3) s.addLink("b", "c", 1, 8, width=3) s.addLink("b", "d", 7, 10, height=0.4, color="#BBBBBB", width=2) s.addLink("c", "d", 6, 9, width=3) s.addNodeCluster("a", [(2, 5)], color="blue", width=3) s.addNodeCluster("b", [(1, 8)], color="blue", width=3) s.addNodeCluster("d", [(6, 9)], color="blue", width=3) s.addTimeLine(ticks=2)
s.addNode("c", [(4, 9)]) s.addNode("d", [(1, 3)]) s.addLink("a", "b", 1, 3) s.addLink("b", "d", 2, 3) s.addLink("a", "c", 4.5, 7.5, height=0.60) s.addLink("a", "b", 7, 8) s.addLink("a", "b", 6, 9) s.addRectangle("a", "a", 0, 1, color=-1, bordercolor="#FF9896") s.addRectangle("b", "b", 0, 1, color=-1, bordercolor="#FF9896") s.addRectangle("a", "b", 1, 2, color=-1, bordercolor="#FF9896") s.addRectangle("d", "d", 1, 2, color=-1, bordercolor="#FF9896") s.addRectangle("a", "d", 2, 3, color=-1, bordercolor="#FF9896") s.addRectangle("a", "a", 3, 4.5, color=-1, bordercolor="#FF9896") s.addRectangle("b", "b", 3, 4, color=-1, bordercolor="#FF9896") s.addRectangle("c", "c", 4, 4.5, color=-1, bordercolor="#FF9896") s.addRectangle("a", "c", 4.5, 6, color=-1, bordercolor="#FF9896") s.addRectangle("b", "b", 5, 6, color=-1, bordercolor="#FF9896") s.addRectangle("a", "c", 6, 8, color=-1, bordercolor="#FF9896") s.addRectangle("a", "a", 8, 10, color=-1, bordercolor="#FF9896") s.addRectangle("b", "c", 8, 9, color=-1, bordercolor="#FF9896") s.addRectangle("b", "b", 9, 10, color=-1, bordercolor="#FF9896") s.addTimeLine()
from streamsvg import Drawing sg = Drawing(alpha=0, omega=4) sg.addNode("u") sg.addNode("v") sg.addNode("w") sg.addLink("u", "v", 1, 2) sg.addLink("v", "w", 2, 3) sg.addPath(((2,"u","v"), (2,"v","w")), 2, 2, color='blue', width=2) sg.addTimeLine()
s.addNode("y") s.addNode("w") s.addLink("u", "x", 1, 2) s.addLink("u", "x", 9, 10) s.addLink("x", "v", 3, 4) s.addLink("x", "v", 11, 12) s.addLink("v", "y", 5, 6) s.addLink("v", "y", 13, 14) s.addLink("y", "w", 7, 8) s.addLink("y", "w", 15, 16) s.addPath(((2, "u", "x"), (3.5, "x", "v"), (5.5, "v", "y"), (7, "y", "w")), 2, 7, color='blue', width=2) s.addPath(((10, "u", "x"), (11.5, "x", "v"), (13.5, "v", "y"), (15, "y", "w")), 10, 15, color='green', width=2) s.addTimeNodeMark(4.5, "v", color="#FF0000", width=1) s.addTimeLine(ticks=80, marks=[(0, ""), (2, 2), (7, 7), (10, 10), (15, 15), (3, "a"), (4, "b"), (5, "c"), (6, "d"), (11, "e"), (12, "f"), (13, "g"), (14, "h")]) #s.addTimeLine(ticks=2)