Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I hide the node boundary in graphviz?

I am drawing a graph with graphviz. Even though I have penwidth=0 for the nodes, I still see the node boundary. How do I get rid of the node boundary?

My annotation in dot is something like this:

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];
}
like image 382
highBandWidth Avatar asked Dec 12 '22 13:12

highBandWidth


2 Answers

This works for me:

node [shape=plaintext]

Source: https://renenyffenegger.ch/notes/tools/Graphviz/examples/index

like image 74
Brooks Ambrose Avatar answered Jan 10 '23 01:01

Brooks Ambrose


The issue is you have a typo.

penwidht should be 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];
}
like image 43
Ramon Avatar answered Jan 10 '23 03:01

Ramon