orientation
節點形狀旋轉角度,或圖形方向
類型: double | string, 預設值: 0.0
, ""
, 最小值: -360.0
當用於節點時:以度為單位,旋轉多邊形節點形狀的角度。對於任意數量的多邊形邊,0度旋轉會產生平坦的底邊。當用於圖形時:如果為"[lL]*"
,則將圖形方向設定為橫向。
僅當 rotate
未定義時才使用。
節點方向
digraph {
layout=neato # Render in a circular layout
node [shape=house] # Make all nodes have 'house' shape
0 [orientation=0]
45 [orientation=45]
90 [orientation=90]
135 [orientation=135]
180 [orientation=180]
225 [orientation=225]
270 [orientation=270]
315 [orientation=315]
0 -> 45 -> 90 -> 135 -> 180 -> 225 -> 270 -> 315 -> 0
}
橫向圖形方向
digraph {
orientation=L
a -> b
}
另請參閱
適用於- 節點
- 圖形