2011-05-05 56 views
1

我正在用graphviz繪製圖形。即使我有penwidth=0的節點,我仍然可以看到節點邊界。我如何擺脫節點邊界?如何隱藏graphviz中的節點邊界?

我在點註釋是這樣的:

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

回答

0

我不是太熟悉這些DOT文件,但the manual沒有提到這個penwidth屬性。

可以節點色設置爲相同的圖形的背景色:

graph [bgcolor=white]; 
node [color=white]; 

這可能會導致同樣的結果(無可見的節點邊界)。

+0

謝謝!儘管我使用http://www.graphviz.org/doc/info/attrs.html#d:penwidth的'penwidth' – highBandWidth 2011-05-05 22:30:39

1

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