colors & rectangles

main
Jeff Moe 2022-08-14 16:09:33 -06:00
parent 71e0ebdcba
commit ca47491452
1 changed files with 18 additions and 15 deletions

33
SNOPO
View File

@ -22,9 +22,12 @@
import graphviz
good_color="green"
ok_color="yellow"
bad_color="red"
good_color = "green"
ok_color = "yellow"
bad_color = "red"
vid_shape = "rect"
cam_shape = "egg"
py_shape = "circle"
g = graphviz.Digraph(
name="SatNOGS Optical",
@ -48,7 +51,6 @@ g.attr(
with g.subgraph(name="cluster_hardware") as a:
a.attr(style="filled", color="lightgrey")
a.node_attr.update(style="filled", color="pink", shape="rectangle")
a.attr(label="Hardware\nChoose One")
with a.subgraph(name="cluster_video") as b:
b.attr(style="filled", color="cornsilk", label="Motion Video Cameras")
@ -85,10 +87,10 @@ with g.subgraph(name="cluster_hardware") as a:
c.edge("n_indi", "n_camera", color=good_color)
with a.subgraph(name="cluster_allsky") as d:
d.attr(
style="filled", color="slateblue", label="Allsky Cameras", fontcolor="white"
style="filled", color="plum2", label="Allsky Cameras", fontcolor="black"
)
d.node_attr.update(
style="filled", color="peru", shape="octagon", fontcolor="black"
style="filled", color="seashell2", shape="octagon", fontcolor="black"
)
d.node("n_asi_allsky", label="ZWO ASI Allsky")
d.node("n_oculus", label="Starlight Xpress Oculus")
@ -102,7 +104,7 @@ with g.subgraph(name="cluster_repository") as a:
a.attr(label="Software\nRepository\nChoose One")
with a.subgraph(name="cluster_camera_software") as b:
b.attr(color="lightblue")
b.node_attr["style"] = "filled"
b.node_attr.update(style="filled", color="lightgoldenrodyellow", shape="rect")
b.node("n_video", label="Video")
b.node("n_camera", label="Camera")
b.node("n_allsky", label="Allsky")
@ -115,6 +117,7 @@ with g.subgraph(name="cluster_repository") as a:
b.attr(label="Development\nPython")
with a.subgraph(name="cluster_c_software") as c:
c.attr(color="tan")
c.node_attr.update(style="filled", color="lightsteelblue1", shape="rect")
c.node_attr["style"] = "filled"
c.node("n_sattools", label="sattools")
c.edge("n_video", "n_sattools", color=good_color)
@ -126,7 +129,7 @@ with g.subgraph(name="cluster_acquire") as a:
a.attr(label="Acquire Sample")
with a.subgraph(name="cluster_camera_acquire") as b:
b.attr(color="lightblue")
b.node_attr["style"] = "filled"
b.node_attr.update(style="filled", color="wheat3", shape="rect")
b.node(
"n_sattools_cacquire", label="sattools/scripts/get.sh\ngphoto2\njpg2fits"
)
@ -138,7 +141,7 @@ with g.subgraph(name="cluster_acquire") as a:
b.attr(label="Camera\nSample")
with a.subgraph(name="cluster_video_acquire") as c:
c.attr(color="tan")
c.node_attr["style"] = "filled"
c.node_attr.update(style="filled", color="plum", shape="rect")
c.node("n_sattools_vacquire", label="sattools/UNKNOWN-vid-get.sh")
c.node("n_stvid_acquire", label="stvid/acquire.py")
c.edge("n_sattools", "n_sattools_vacquire", color=ok_color)
@ -151,7 +154,7 @@ with g.subgraph(name="cluster_platesolver") as a:
a.attr(label="Plate Solver")
with a.subgraph(name="cluster_camera_plate_solver") as b:
b.attr(color="lightblue")
b.node_attr["style"] = "filled"
b.node_attr.update(style="filled", color="silver", shape="rect")
b.node("n_sattools_cplate", label="sattools/scripts/find.sh\nsource-extractor")
b.node("n_stphot_plate", label="stphot/UNKNOWN-find.py")
b.node("n_asm_plate", label="asm/UNKNOWN-find")
@ -161,7 +164,7 @@ with g.subgraph(name="cluster_platesolver") as a:
b.attr(label="Camera\nPlate Solver")
with a.subgraph(name="cluster_video_platesolver") as c:
c.attr(color="pink")
c.node_attr["style"] = "filled"
c.node_attr.update(style="filled", color="paleturquoise3", shape="rect")
c.node("n_sattools_vplate", label="sattools/UNKNOWN-vid-find.sh")
c.node("n_stvid_plate", label="stvid/process.py")
c.edge("n_sattools_vacquire", "n_sattools_vplate", color=ok_color)
@ -173,7 +176,7 @@ with g.subgraph(name="cluster_satdetect") as a:
a.attr(label="Detect Satellites")
with a.subgraph(name="cluster_camera_satdetect") as b:
b.attr(color="tan")
b.node_attr["style"] = "filled"
b.node_attr.update(style="filled", color="olivedrab3", shape="rect")
b.node("n_sattools_cdetect", label="sattools/scripts/id.sh\naddwcs\nsatid")
b.node("n_stphot_detect", label="stphot/UNKNOWN-detect.py")
b.node("n_asm_detect", label="asm/UNKNOWN-detect")
@ -183,7 +186,7 @@ with g.subgraph(name="cluster_satdetect") as a:
b.attr(label="Camera\nDetect Satellites")
with a.subgraph(name="cluster_video_satdetect") as c:
c.attr(color="tan")
c.node_attr["style"] = "filled"
c.node_attr.update(style="filled", color="ivory2", shape="rect")
c.node("n_sattools_vdetect", label="sattools/UNKNOWN-vid-detect.sh")
c.node("n_stvid_detect", label="stvid/process.py")
c.edge("n_sattools_vplate", "n_sattools_vdetect", color=ok_color)
@ -195,7 +198,7 @@ with g.subgraph(name="cluster_satid") as a:
a.attr(label="Identify Satellites")
with a.subgraph(name="cluster_camera_satid") as b:
b.attr(color="tan")
b.node_attr["style"] = "filled"
b.node_attr.update(style="filled", color="darkseagreen3", shape="rect")
b.node("n_sattools_cid", label="sattools/scripts/id.sh\naddwcs\nsatid")
b.node("n_stphot_id", label="stphot/UNKNOWN-id.py")
b.node("n_asm_id", label="asm/UNKNOWN-id")
@ -205,7 +208,7 @@ with g.subgraph(name="cluster_satid") as a:
b.attr(label="Camera\nID Satellite")
with a.subgraph(name="cluster_video_satid") as c:
c.attr(color="tan")
c.node_attr["style"] = "filled"
c.node_attr.update(style="filled", color="cornsilk3", shape="rect")
c.node("n_sattools_vid", label="sattools/UNKNOWN-vid-id.sh")
c.node("n_stvid_id", label="stvid/process.py")
c.edge("n_sattools_vdetect", "n_sattools_vid", color=ok_color)