Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/templates/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在graphviz中隐藏节点边界?_Graphviz_Dot_Graph Visualization - Fatal编程技术网

如何在graphviz中隐藏节点边界?

如何在graphviz中隐藏节点边界?,graphviz,dot,graph-visualization,Graphviz,Dot,Graph Visualization,我正在用graphviz画一个图表。即使我为节点设置了penwidth=0,我仍然可以看到节点边界。如何消除节点边界 我的dot注释如下所示: strict graph { graph [bgcolor=white]; 0 [fillcolor=red, style=filled, shape=octagon, penwidht=0, fontsize=10, fixedsize=True,

我正在用graphviz画一个图表。即使我为节点设置了
penwidth=0
,我仍然可以看到节点边界。如何消除节点边界

我的dot注释如下所示:

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];
}

setlinewidth适用于我:

strict graph  {
    graph [bgcolor=white];
    0    [fillcolor=red,
        style="filled,setlinewidth(0)",
        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];
}
node [shape=plaintext]
这对我很有用:

strict graph  {
    graph [bgcolor=white];
    0    [fillcolor=red,
        style="filled,setlinewidth(0)",
        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];
}
node [shape=plaintext]

来源:

问题是你的打字错误

penwidt
应为
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];
}