color blocks

main
Jeff Moe 2022-08-14 13:59:32 -06:00
parent 2fbdcaade2
commit 8471578433
1 changed files with 7 additions and 4 deletions

11
SNOPO
View File

@ -35,25 +35,28 @@ g = graphviz.Digraph(
edge_attr="",
)
g.attr(rankdir="LR")
g.attr(bgcolor='white:white', label='DRAFT SatNOGS Optical Process Overview DRAFT', fontcolor='black')
g.attr(bgcolor='seashell2:seashell', label='DRAFT SatNOGS Optical Process Overview DRAFT', fontcolor='black')
with g.subgraph(name="cluster_hardware") as a:
a.attr(style="filled", color="lightgrey")
a.node_attr.update(style="filled", color="pink", shape="rectangle")
with a.subgraph(name="cluster_video") as b:
b.attr(style="filled", color="lightgreen", label="Motion Video Cameras")
b.attr(style="filled", color="cornsilk", label="Motion Video Cameras")
b.node_attr.update(style="filled", color="darkkhaki", shape="tripleoctagon")
b.edge("UVC", "Video")
b.edge("OpenCV", "Video")
b.edge("Raspberry Pi", "Video")
b.edge("ZWO ASI", "Video")
with a.subgraph(name="cluster_camera") as c:
c.attr(style="filled", color="lightgreen", label="Still Cameras")
c.attr(style="filled", color="lightskyblue", label="Still Cameras", fontcolor="black")
c.node_attr.update(style="filled", color="midnightblue", shape="doubleoctagon", fontcolor="white")
c.edge("gphoto2", "Camera")
c.edge("Canon DSLR", "Camera")
c.edge("Nikon DSLR", "Camera")
c.edge("INDI", "Camera")
with a.subgraph(name="cluster_allsky") as d:
d.attr(style="filled", color="lightgreen", label="Allsky Cameras")
d.attr(style="filled", color="slateblue", label="Allsky Cameras", fontcolor="white")
d.node_attr.update(style="filled", color="peru", shape="octagon", fontcolor="black")
d.edge("ZWO ASI Allsky", "Allsky")
d.edge("Starlight Xpress Oculus", "Allsky")
d.edge("INDI Allsky", "Allsky")