Set fonts

main
Jeff Moe 2022-08-14 17:54:29 -06:00
parent 1056368054
commit 9615b20159
1 changed files with 44 additions and 27 deletions

71
SNOPO
View File

@ -28,6 +28,18 @@ bad_color = "red"
vid_shape = "rect"
cam_shape = "egg"
py_shape = "circle"
header_font = "helvetica bold"
header_font_size = "20"
header_font = "helvetica bold"
header_font_size = "20"
sub_font = "helvetica italic"
sub_font_size = "14"
start_font = "helvetica"
start_font_size = "18"
node_font = "ariel"
node_font_size = "14"
code_font = "courier"
code_font_size = "14"
g = graphviz.Digraph(
name="SatNOGS Optical",
@ -46,15 +58,17 @@ g.attr(
bgcolor="seashell2:seashell",
label="SatNOGS Optical Process Overview",
fontcolor="black",
fontname=header_font,
fontsize=header_font_size
)
with g.subgraph(name="cluster_hardware") as a:
a.attr(style="filled", color="lightgrey")
a.attr(label="Hardware\nChoose One")
a.attr(label="Hardware")
with a.subgraph(name="cluster_video") as b:
b.attr(style="filled", color="cornsilk", label="Motion Video Cameras")
b.node_attr.update(style="filled", color="darkkhaki", shape="rect")
b.attr(style="filled", color="cornsilk", label="Motion Video Cameras", fontname=sub_font, fontsize=sub_font_size)
b.node_attr.update(style="filled", color="darkkhaki", shape="rect", fontname=node_font, fontsize=node_font_size)
b.node("n_uvc", label="UVC")
b.node("n_cv", label="OpenCV")
b.node("n_pi", label="Raspberry\nPi")
@ -70,12 +84,15 @@ with g.subgraph(name="cluster_hardware") as a:
color="lightskyblue",
label="Still Cameras",
fontcolor="black",
fontname=sub_font,
fontsize=sub_font_size,
)
c.node_attr.update(
style="filled",
color="midnightblue",
shape="rect",
fontcolor="white",
fontname=node_font, fontsize=node_font_size
)
c.node("n_gphoto", label="gphoto2")
c.node("n_canon", label="Canon DSLR")
@ -87,10 +104,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="plum2", label="Allsky Cameras", fontcolor="black"
style="filled", color="plum2", label="Allsky Cameras", fontcolor="black", fontname=sub_font, fontsize=sub_font_size
)
d.node_attr.update(
style="filled", color="seashell2", shape="rect", fontcolor="black"
style="filled", color="seashell2", shape="rect", fontcolor="black", fontname=node_font, fontsize=node_font_size
)
d.node("n_asi_allsky", label="ZWO ASI\nAllsky")
d.node("n_oculus", label="Starlight\nXpress\nOculus")
@ -101,10 +118,10 @@ with g.subgraph(name="cluster_hardware") as a:
with g.subgraph(name="cluster_repository") as a:
a.attr(style="filled", color="palegreen4", label="Repository")
a.attr(label="Software\nRepository\nChoose One")
a.attr(label="Software\nRepository")
with a.subgraph(name="cluster_camera_software") as b:
b.attr(color="lightblue")
b.node_attr.update(style="filled", color="lightgoldenrodyellow", shape="rect")
b.node_attr.update(style="filled", color="lightgoldenrodyellow", shape="rect", fontname=node_font, fontsize=node_font_size)
b.node("n_video", label="Video")
b.node("n_camera", label="Camera")
b.node("n_allsky", label="Allsky")
@ -114,22 +131,22 @@ with g.subgraph(name="cluster_repository") as a:
b.edge("n_video", "n_stvid", color=good_color)
b.edge("n_camera", "n_stphot", color=good_color)
b.edge("n_allsky", "n_asm", color=good_color)
b.attr(label="Development\nPython")
b.attr(label="Development\nPython", fontname=sub_font, fontsize=sub_font_size)
with a.subgraph(name="cluster_c_software") as c:
c.attr(color="palevioletred4")
c.node_attr.update(style="filled", color="lightsteelblue1", shape="rect")
c.node_attr.update(style="filled", color="lightsteelblue1", shape="rect", fontname=node_font, fontsize=node_font_size)
c.node_attr["style"] = "filled"
c.node("n_sattools", label="sattools")
c.edge("n_video", "n_sattools", color=good_color)
c.edge("n_camera", "n_sattools", color=good_color)
c.attr(label="Legacy\nC")
c.attr(label="Legacy\nC", fontname=sub_font, fontsize=sub_font_size)
with g.subgraph(name="cluster_acquire") as a:
a.attr(style="filled", color="pink", label="Acquire")
a.attr(label="Acquire Sample")
with a.subgraph(name="cluster_camera_acquire") as b:
b.attr(color="lightblue")
b.node_attr.update(style="filled", color="wheat3", shape="rect")
b.node_attr.update(style="filled", color="wheat3", shape="rect", fontname=node_font, fontsize=node_font_size)
b.node(
"n_sattools_cacquire", label="sattools\nget.sh\ngphoto2\njpg2fits"
)
@ -138,15 +155,15 @@ with g.subgraph(name="cluster_acquire") as a:
b.edge("n_sattools", "n_sattools_cacquire", color=good_color)
b.edge("n_stphot", "n_stphot_acquire", color=good_color)
b.edge("n_asm", "n_asm_acquire", color=good_color)
b.attr(label="Camera\nSample")
b.attr(label="Camera\nSample", fontname=sub_font, fontsize=sub_font_size)
with a.subgraph(name="cluster_video_acquire") as c:
c.attr(color="olivedrab3")
c.node_attr.update(style="filled", color="plum", shape="rect")
c.node_attr.update(style="filled", color="plum", shape="rect", fontname=node_font, fontsize=node_font_size)
c.node("n_sattools_vacquire", label="sattools\nUNKNOWN")
c.node("n_stvid_acquire", label="stvid\nacquire.py")
c.edge("n_sattools", "n_sattools_vacquire", color=ok_color)
c.edge("n_stvid", "n_stvid_acquire", color=good_color)
c.attr(label="Video\nSample")
c.attr(label="Video\nSample", fontname=sub_font, fontsize=sub_font_size)
with g.subgraph(name="cluster_platesolver") as a:
@ -154,7 +171,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.update(style="filled", color="silver", shape="rect")
b.node_attr.update(style="filled", color="silver", shape="rect", fontname=node_font, fontsize=node_font_size)
b.node("n_sattools_cplate", label="sattools\nfind.sh\nsource-extractor")
b.node("n_stphot_plate", label="stphot\nUse sattools")
b.node("n_asm_plate", label="asm\nNONE")
@ -162,62 +179,62 @@ with g.subgraph(name="cluster_platesolver") as a:
b.edge("n_stphot_acquire", "n_sattools_cplate", color=good_color)
b.edge("n_stphot_acquire", "n_stphot_plate", color=bad_color)
b.edge("n_asm_acquire", "n_asm_plate", color=bad_color)
b.attr(label="Camera\nPlate Solver")
b.attr(label="Camera\nPlate Solver", fontname=sub_font, fontsize=sub_font_size)
with a.subgraph(name="cluster_video_platesolver") as c:
c.attr(color="goldenrod3")
c.node_attr.update(style="filled", color="paleturquoise3", shape="rect")
c.node_attr.update(style="filled", color="paleturquoise3", shape="rect", fontname=node_font, fontsize=node_font_size)
c.node("n_sattools_vplate", label="sattools\nUNKNOWN")
c.node("n_stvid_plate", label="stvid\nprocess.py")
c.edge("n_sattools_vacquire", "n_sattools_vplate", color=ok_color)
c.edge("n_stvid_acquire", "n_stvid_plate", color=good_color)
c.attr(label="Video\nPlate Solver")
c.attr(label="Video\nPlate Solver", fontname=sub_font, fontsize=sub_font_size)
with g.subgraph(name="cluster_satdetect") as a:
a.attr(style="filled", color="lightblue", label="satdetect")
a.attr(label="Detect Satellites")
with a.subgraph(name="cluster_camera_satdetect") as b:
b.attr(color="khaki2")
b.node_attr.update(style="filled", color="olivedrab3", shape="rect")
b.node_attr.update(style="filled", color="olivedrab3", shape="rect", fontname=node_font, fontsize=node_font_size)
b.node("n_sattools_cdetect", label="sattools\nid.sh\naddwcs\nsatid")
b.node("n_stphot_detect", label="stphot\nNONE")
b.node("n_asm_detect", label="asm\nNONE")
b.edge("n_sattools_cplate", "n_sattools_cdetect", color=good_color)
b.edge("n_stphot_plate", "n_stphot_detect", color=bad_color)
b.edge("n_asm_plate", "n_asm_detect", color=bad_color)
b.attr(label="Camera\nDetect Satellites")
b.attr(label="Camera\nDetect Satellites", fontname=sub_font, fontsize=sub_font_size)
with a.subgraph(name="cluster_video_satdetect") as c:
c.attr(color="aquamarine4")
c.node_attr.update(style="filled", color="ivory2", shape="rect")
c.node_attr.update(style="filled", color="ivory2", shape="rect", fontname=node_font, fontsize=node_font_size)
c.node("n_sattools_vdetect", label="sattools\nUNKNOWN")
c.node("n_stvid_detect", label="stvid\nprocess.py")
c.edge("n_sattools_vplate", "n_sattools_vdetect", color=ok_color)
c.edge("n_stvid_plate", "n_stvid_detect", color=good_color)
c.attr(label="Video\nDetect Satellites")
c.attr(label="Video\nDetect Satellites", fontname=sub_font, fontsize=sub_font_size)
with g.subgraph(name="cluster_satid") as a:
a.attr(style="filled", color="darkseagreen4", label="satid")
a.attr(label="Identify Satellites")
with a.subgraph(name="cluster_camera_satid") as b:
b.attr(color="yellow3")
b.node_attr.update(style="filled", color="darkseagreen3", shape="rect")
b.node_attr.update(style="filled", color="darkseagreen3", shape="rect", fontname=node_font, fontsize=node_font_size)
b.node("n_sattools_cid", label="sattools\nid.sh\naddwcs\nsatid")
b.node("n_stphot_id", label="stphot\nNONE")
b.node("n_asm_id", label="asm\nNONE")
b.edge("n_sattools_cdetect", "n_sattools_cid", color=good_color)
b.edge("n_stphot_detect", "n_stphot_id", color=bad_color)
b.edge("n_asm_detect", "n_asm_id", color=bad_color)
b.attr(label="Camera\nID Satellite")
b.attr(label="Camera\nID Satellite", fontname=sub_font, fontsize=sub_font_size)
with a.subgraph(name="cluster_video_satid") as c:
c.attr(color="thistle")
c.node_attr.update(style="filled", color="steelblue", shape="rect")
c.node_attr.update(style="filled", color="steelblue", shape="rect", fontname=node_font, fontsize=node_font_size)
c.node("n_sattools_vid", label="sattools\nUNKNOWN")
c.node("n_stvid_id", label="stvid\nprocess.py")
c.edge("n_sattools_vdetect", "n_sattools_vid", color=ok_color)
c.edge("n_stvid_detect", "n_stvid_id", color=good_color)
c.attr(label="Video\nID Satellite")
c.attr(label="Video\nID Satellite", fontname=sub_font, fontsize=sub_font_size)
g.attr("node", shape="doublecircle", style="filled", color="orange")
g.node("n_start", label="Start\nHere")
g.node("n_start", label="Start\nHere", fontname=start_font, fontsize=start_font_size)
g.edge("n_start", "n_indi", color=good_color)
g.edge("n_start", "n_gphoto", color=good_color)
g.edge("n_start", "n_canon", color=good_color)