Graphviz: Difference between revisions

From Fundamental Ramen
Jump to navigation Jump to search
 
(21 intermediate revisions by the same user not shown)
Line 1: Line 1:
= Test =
<quickgv name="N" theme="warm">
rankdir=BT;
skcom_dll [label="SKCOM.dll"];
skcom_py [label="AsyncQuoteReceiver"];
eq [label="Event Queue"];
hq [label="History Queue"];
websockets [label="Websockets\n(ws://127.0.0.1:8080)"];
frontend [label="Frontend"];
skcom_dll -> skcom_py;
skcom_py -> eq;
eq -> hq [label="backup", constraint=false];
eq -> websockets;
hq -> websockets;
websockets -> frontend;
frontend -> websockets;
</quickgv>
= Beautify Edges =
= Beautify Edges =
== OTP ==
<quickgv name="otp" theme="warm">
rankdir=TB;
A [label="接到衛生所的電話"];
B [label="配合(不確定是不是)衛生所的人加入 Line 好友"];
C [label="電話中詢問對方分機"];
D [label="掛掉對方打來的電話, 照衛生所官網提供的號碼,\n主動打去衛生所與分機"];
E1 [label="隨機給對方一組數字,\n請他在 Line 裡面輸入"];
E2 [label="對方要求打去指定的電話號碼"];
F1 [label="輸入正確"];
F2 [label="輸入錯誤"];
F3 [label="輸入錯誤3次"];
G [label="身分核對完成"];
H [label="視為詐騙"];
A -> B -> C -> D;
D -> E1;
D -> E2;
E1 -> {F1 F2 F3};
F2 -> E1;
F1 -> G;
E2 -> H;
F3 -> H;
</quickgv>
== Record shape ==
https://graphviz.org/doc/info/shapes.html#record


<quickgv name="test0" theme="warm" usage="ram">
<quickgv name="test0" theme="warm" usage="ram">
rankdir=TB;
rankdir=TB;
spline=ortho;
FW [label="{Vigor 2926 | { <1> P1 | <2> P2 | <3> P3 | <4> P4 | <w1> WAN1 | <w2> WAN2 }}"];
Hinet [label="種花電信肛世代"];
Office [label="office switch"]


A [label="Vigor 2926 | { <1> P1 | <2> P2 }"];
FW:w1 -> Hinet;
B [label="B"];
FW:1 -> Office;
</quickgv>
</quickgv>



Latest revision as of 06:03, 7 June 2021

Test

Beautify Edges

OTP

Record shape

https://graphviz.org/doc/info/shapes.html#record

Order

GDS

Edge Attributes

label arrow other
  • URL labelURL headURL tailURL edgeURL
  • lp head_lp tail_lp xlp
  • headclip tailclip
  • href headhref tailhref edgehref labelhref
  • label headlabel taillabel xlabel
  • headport tailport
  • headtarget tailtarget edgetarget labeltarget
  • headtooltip tailtooltip edgetooltip labeltooltip
  • label_scheme
  • labelangle
  • labeldistance
  • labelfloat
  • labelfontcolor
  • labelfontname
  • labelfontsize

arrowhead arrowsize arrowtail color colorscheme comment constraint decorate dir fillcolor fontcolor fontname fontsize id len lhead ltail minlen nojustify penwidth pos samehead sametail showboxes target tooltip weight

Edge label

All kinds of labels

label xlabel headlabel taillabel

Difference between label and xlabel 1

Attribute label works not good as expected while using in subgraph.

label xlabel label in subgraph xlabel in subgraph

Difference between label and xlabel 2 (constraint=false)

  • The label is gone.
  • Space of xlabel is not enough.
label

xlabel

xlabel
with minlen=4

label
in subgraph

xlabel
in subgraph

xlabel
in subgraph
with minlen=4

Direction of subgraph

Position of xlabel