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 sg = Drawing() sg.addNode("A", [(0, 3), (7, 10)], color='pink') sg.addNode("B", [(2, 6), (8, 10)], color='blue') sg.addNode("C", [(0, 8)], color='green') sg.addLink("A", "B", 2, 3) sg.addLink("A", "B", 9, 10) sg.addLink("A", "C", 7, 8, height=0.6) sg.addLink("B", "C", 4, 6) sg.addTimeLine(ticks=2)
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)
from streamsvg import Drawing sg = Drawing(alpha=0, omega=11) sg.addNode("a", [(1, 4)]) sg.addNode("b", [(1, 5), (6, 8)]) sg.addNode("c", [(2, 5), (6, 9)]) sg.addNode("d", [(7, 9)]) sg.addLink("a", "b", 1, 4) sg.addLink("b", "c", 2, 5) sg.addLink("b", "c", 6, 8) sg.addLink("c", "d", 7, 9) sg.addTimeLine(ticks=2)
from streamsvg import Drawing #s = Drawing(alpha=0, omega=5) s = Drawing(alpha=1, omega=9) s.addNode("a", [(1, 9)]) s.addNode("b", [(1, 9)]) s.addNode("c", [(3, 9)]) s.addLink("a", "b", 1, 4) s.addLink("a", "b", 5, 9) s.addLink("b", "c", 3, 9) #s.addTimeLine(ticks=1) #s.addTimeLine(ticks=5, marks=[(2,2)]) s.addTimeLine(ticks=2) #s.addParameter("D", 1)
from streamsvg import Drawing s = Drawing(alpha=0, omega=13, discrete=1) s.addNode("a") s.addNode("b", [(1, 5), (7, 13)]) s.addNode("c", [(5, 12)]) s.addNode("d", [(1, 3)]) s.addLink("a", "b", 1, 4, direction='out') s.addLink("a", "b", 9, 10) s.addLink("a", "c", 6, 9, curving=0.4) s.addLink("b", "d", 2, 3, curving=0.4) s.addLink("b", "c", 8, 12) s.addTimeLine(ticks=2)
from streamsvg import Drawing s = Drawing(alpha=0, omega=10, discrete=1.5) s.addNode("u") s.addNode("v") s.addNode("x") s.addNode("y", [(3,6)]) s.addNodeCluster("u", [(0.5,2)], color='blue', width=200) s.addNodeCluster("v", color='blue') s.addNodeCluster("u", [(6,7.5)], color="#ff0000") s.addLink("u", "v", 1.5, 6) s.addLink("u", "x", 1.5, 1.5, curving=0.2) s.addLink("v", "y", 1.5, 1.5, curving=-0.2)
from streamsvg import Drawing sg = Drawing(omega=12) sg.addNode("a", [(0, 4)]) sg.addNode("b", [(2, 8), (10, 12)]) sg.addNode("c", [(2, 11)]) sg.addTime(0, label="a") sg.addTime(1, label="t") sg.addTime(6, label="t2") sg.addTime(9, label="t3") sg.addTime(10, label="w") sg.addPath([(3, "a", "b"), (6, "b", "c"), (9, "c", "b")], 1, 11, gamma=2, width=3, color='blue') sg.addTimeLine(ticks=2) sg.addParameter(0, 2, "g", 2)