我用点创建SVG输出。当我为节点和边设置penwidth = 2
时,箭头略微指向框内。有办法避免这种情况吗?也许通过在边缘之后绘制节点?或者通过将边缘/箭头的长度减少到95%?我试图找到一个允许这个的属性,但找不到有用的东西。
注意:转换为png或jpg时无法看到效果。使用dot -Tsvg file.dot > file.svg
创建SVG并在浏览器中查看。
这是我的点文件:
digraph configure {
node [
shape = box,
fontname = "Courier",
style = "filled",
fillcolor = "#cccccc",
penwidth = 2
];
A [label = "configure.in"];
B [label = "autoconf\nGNU m4", fillcolor = ".7 .3 1.0"];
C [label = "configure"];
X [label = "cfg.hin", fillcolor = "#eeeeee"];
Y [label = "cfg.h", fillcolor = "#eeeeee"];
edge [
fontname = "Palatino-Italic",
fontsize = 9,
penwidth = 2,
arrowsize = 1
];
A -> B [label = " is input to"];
B -> C [label = " creates"];
subgraph cfg {
rank = same;
rankdir = LR;
X -> C [label = "is input to "];
C -> Y [label = "creates "];
}
}