graph easy{ a--b [label="你真漂亮"]}graph easy{ a--b [label="你真漂亮", fontcolor=red, fontsize=34]}digraph easy { a -> b [style=dashed];}box 矩形
polygon
ellipse
circle 圓形
point
egg 蛋形
triangle 三角形
plaintext 使用文字
diamond 鑽石型
trapezium 梯形
parallelogram 斜的長方形
house
hexagon
octagon
doublecircle
doubleoctagon
tripleoctagon
invtriangle
invtrapezium
invhouse
Mdiamond
Msquare
Mcircle
none
record
Mrecord
graph easy { node [shape=box] a -- b;}默認圖是從上到下畫的,你可以用`rankdir = LR`來讓圖從左往右繪製digraph easy { rankdir = LR; a -> b;}LR 從左往右布局
RL 從右往左布局
TB 從上下往下布局(默認)
BT 從下往上布局
digraph easy { rankdir = LR; a -> b; b -> c; a -> c; c -> d; a -> d;}digraph easy { a -> b; b -> c; }graph easy{ "直到確定,手的溫度來自你心裡"--"這一刻,也終於勇敢說愛你"; "這一刻,也終於勇敢說愛你" -- "一開始 我只顧著看你, 裝做不經意 心卻飄過去"}graph easy{ a [label="直到確定,手的溫度來自你心裡"]; b [label="這一刻,也終於勇敢說愛你"]; c [label="一開始 我只顧著看你, 裝做不經意 心卻飄過去"] a -- b; b -- c;}digraph easy{ rankdir = LR; node [color=Red,shape=egg] edge [color=Pink, style=dashed] a -> b; b -> c; a -> c; c -> d; a -> d;}digraph easy{ bgcolor=Pink; b [style=filled, fillcolor=yellow, center=true] a->b;}digraph easy{ nodesep = 0.5 header [shape=circle, label="^_^", style=filled, fillcolor=pink] body [shape=invhouse, label="~ ~\n~ ~\n~ ~", center=true, style=filled, fillcolor=peru] leftHand [shape=Mcircle, label="", style=filled, fillcolor=palegoldenrod] rightHand [shape=Mcircle, label="", style=filled, fillcolor=palegoldenrod] leftFoot [shape=egg, label="", style=filled, fillcolor=palegoldenrod] rightFoot [shape=egg, label="", style=filled, fillcolor=palegoldenrod] header->body [arrowhead=crow]; body->leftHand [arrowhead=invodot, penwidth=3, color=cornflowerblue, tailport=ne]; body-> rightHand [arrowhead=invodot, penwidth=3, color=cornflowerblue, tailport=nw]; body -> leftFoot [arrowhead=tee, penwidth=5, color=cornflowerblue] body -> rightFoot [arrowhead=tee, penwidth=5, color=cornflowerblue]}一般來說,如果圖沒有渲染出來,都是因為繪圖語法出問題了。我剛剛開始用的時候,就常常把--用在有向圖中,導致圖無法預覽。建議官方可以把報錯信息提示給用戶。目前來說,這個錯誤信息只在控制臺中列印了,需要按F12打開瀏覽器的console界面。看看哪裡出錯了,然後找到對應的位置修改。如果看完還是學不會……那就點擊「閱讀原文」留言給ta!畢竟是ta自己說的「包學包會」嘛 🌚✌️可能是西湖區最好用的文檔工具✌️