[英]Increase curvature of connecting arcs
考慮:
digraph D {
0[pos="0,0!"]
1[pos="0,5!"]
0 -> 1[label=0.25]
1 -> 0[label=0.50]
}
在neato
engine下渲染,這給出了:
有沒有辦法增加/控制連接弧的曲率,以便渲染類似於下面的手繪注釋:
編輯添加:雖然我不必堅持使用neato
,但在我的應用程序中保持節點pos
坐標值很重要。
[可能有更好的方法,但邊緣很難爭辯]
該解決方案需要neato -n
(參見https://graphviz.org/faq/#FaqDotWithNodeCoords )和( https://graphviz.org/docs/attrs/pos/ )
digraph D {
// next 3 lines from the Graphviz FAQ
overlap=false
splines=true
sep=.1
// neato without -n option will just move the half node
// neato -n uses different scale, so use scale attribute to use inches
// neato -n ignores the !, it assumes all node pos values are final
scale=72
0[pos="0,0!"]
1[pos="0,5!"]
// stick an invisible node in the middle, to force the edges out
half [pos="0,2.5!" width=2.5 style=invis]
0 -> 1 [label=0.25]
1 -> 0 [label=0.50]
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.