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
}

另请参阅

适用于
  • 节点
  • 图形

在 Graphviz 代码库中搜索 "orientation"

最后修改日期: 2024 年 7 月 28 日: 将所有 Hugo 'ref's 替换为 'relref's (bbef86a)