hig*_*dth 4 dot graphviz graph-visualization
我正在用graphviz绘制图形。即使我有penwidth=0
节点,我仍然看到节点边界。如何摆脱节点边界?
我在点中的注释是这样的:
strict graph {
graph [bgcolor=white];
0 [fillcolor=red,
style=filled,
shape=octagon,
penwidht=0,
fontsize=10,
fixedsize=True,
width=0.5,
height=0.5,
type=3];
2 [shape=octagon,
style=filled,
fillcolor=gray,
penwidth=0];
0 -- 2 [penwidth=0.5,
color=gray];
}
Run Code Online (Sandbox Code Playgroud)
这对我有用:
node [shape=plaintext]
Run Code Online (Sandbox Code Playgroud)
资料来源:https : //renenyffenegger.ch/notes/tools/Graphviz/examples/index
问题是你有一个错字。
penwidht
应该penwidth
strict graph {
graph [bgcolor=white];
0 [fillcolor=red,
style=filled,
shape=octagon,
penwidth=0,
fontsize=10,
fixedsize=True,
width=0.5,
height=0.5,
type=3];
2 [shape=octagon,
style=filled,
fillcolor=gray,
penwidth=0];
0 -- 2 [penwidth=0.5,
color=gray];
}
Run Code Online (Sandbox Code Playgroud)