我有一个带有圆形节点的图。我怎样才能影响圆角的半径?或者我是否需要接受固定的graphviz设置?确切的默认设置是什么?
digraph G {
node [shape=rectangle style=rounded]
}
提前谢谢了!
最佳答案
对不起的家伙,我有同样的铅。
查看源代码......它被硬编码为 12 !
shape.c#18 => #define RBCONST 12
没有办法改变它。
唯一的方法是修改生成的svg:
<polygon fill="#8a2be2" stroke="#8a2be2" points="194,-344 140,-344 140,-308 194,-308 194,-344"></polygon>
<rect x="140" y="-344" rx="5" ry="5" width="54" height="36" style="fill: rgb(181, 157, 224);stroke: rgb(138, 43, 226);stroke-width: 1px;opacity: 1;"></rect>
关于graphviz - 如何设置圆形节点样式的半径?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53726454/