Search code examples
graphviz

Graphviz: how to reduce the top and bottom margins of a node?


How can I reduce the top and bottom margins of these Graphviz nodes? I am specifying "0.05, 0.0 as the margins to each node, with fontsize = 8.


Solution

  • digraph { rankdir = LR
        node [shape=box margin=0 width=0 height=0]
        asdf [label="asdf\nasdf"]
        qwer [label="qwerqwer"]
        asdf -> qwer
    }