from streamsvg import Drawing s = Drawing() s.addNode("a", [(0,10)]) s.addNode("b", [(0,4),(5,10)]) s.addNode("c", [(4,9)]) s.addNode("d", [(1,3)]) s.addLink("a","b",1,3) s.addLink("a","b",7,8) s.addLink("b","c",6,9) s.addLink("b","d",2,3,height=0.4) s.addLink("a","c",4.5,7.5,height=0.4) s.addRectangle("a","c",2,4,color="blue") s.addRectangle("b","d",7,8,color="#ff0000") s.addTimeLine(ticks=2)
from streamsvg import Drawing s = Drawing() s.addNode("a") s.addNode("b", [(0, 4), (5, 10)]) 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")
from streamsvg import Drawing sg = Drawing() sg.addNode("a") sg.addNode("b") sg.addNode("c") sg.addNode("d") sg.addLink("a", "b", 0, 4) sg.addLink("a", "b", 6, 9) sg.addLink("a", "c", 2, 5, height=0.4) sg.addLink("b", "c", 1, 8) sg.addLink("b", "d", 7, 10, height=0.4) sg.addLink("c", "d", 6, 9) sg.addRectangle("a", "c", 2, 4, color='blue') sg.addRectangle("b", "d", 7, 8, color="#FF8080") sg.addTimeLine(ticks=2)
from streamsvg import Drawing s = Drawing() s.addNode("a") s.addNode("b") s.addNode("c") s.addNode("d") s.addNode("e") s.addLink("a", "b", 0, 10) s.addLink("b", "c", 0, 3) s.addLink("a", "c", 2, 10, height=0.4) s.addLink("c", "d", 5, 10) s.addLink("d", "e", 0, 10) s.addRectangle("a", "c", -0.1, 4.95, color="none", bordercolor="#AEC7E8") s.addRectangle("d", "e", -0.1, 4.95, color="none", bordercolor="#AEC7E8") s.addRectangle("a", "e", 5, 10.1, color="none", bordercolor="#AEC7E8") s.addTimeLine(ticks=2)
from streamsvg import Drawing s = Drawing(alpha=0, omega=10) s.addNode("u") s.addNode("v") s.addNode("x") s.addRectangle("u", "v", 4, 6, color='green') s.addLink("u", "v", 1.5, 6, curving=0.2) s.addLink("v", "x", 3, 5) s.addPath([(2, "u", "v"), (4, "v", "x")], 1, 9, width=2, color='blue') s.addTimeLine(ticks=2)
from streamsvg import Drawing s = Drawing() s.addNode("a", [(0, 10)]) s.addNode("b", [(0, 4), (5, 10)]) s.addNode("c", [(4, 9)]) s.addNode("d", [(1, 3)]) s.addLink("a", "b", 1, 3) s.addLink("a", "b", 7, 8) s.addLink("b", "c", 6, 9) s.addLink("b", "d", 2, 3, height=0.4) s.addLink("a", "c", 4.5, 7.5, height=0.4) s.addRectangle("a", "a", 0, .95, color='none', bordercolor="#98DF8A") s.addRectangle("b", "b", 0, .95, color='none', bordercolor="#98DF8A") s.addRectangle("a", "b", 1, 1.95, color='none', bordercolor="#98DF8A") s.addRectangle("d", "d", 1, 1.95, color='none', bordercolor="#98DF8A") s.addRectangle("a", "d", 2, 3, color='none', bordercolor="#98DF8A") s.addRectangle("a", "a", 3.05, 4.45, color='none', bordercolor="#98DF8A") s.addRectangle("b", "b", 3.05, 4, color='none', bordercolor="#98DF8A") s.addRectangle("c", "c", 4, 4.45, color='none', bordercolor="#98DF8A") s.addRectangle("a", "c", 4.5, 5.95, color='none', bordercolor="#98DF8A") s.addRectangle("b", "b", 5, 5.95, color='none', bordercolor="#98DF8A") s.addRectangle("a", "c", 6, 8, color='none', bordercolor="#98DF8A")