The following dotfile is creating a massive output :
digraph G {
"Bob"->"A" [label=" A very long label"]
"Bob"->"B" [label=" A very long label"]
"Bob"->"C" [label=" A very long label"]
"Bob"->"D" [label=" A very long label"]
"Bob"->"E" [label=" A very long label"]
"Bob"->"F" [label=" A very long label"]
"Bob"->"G" [label=" A very long label"]
}
Outputs something like this :
Is there a way to change the label positions to reduce the graph size ?
Labels can be positioned with lp
. You could change the labelangle
. There are also headlabel
and taillabel
labels.
Search for 'label' in the documentation.
Very simple \n solution
digraph G {
"Bob"->"A" [label=" A very\nlong\nlabel"]
"Bob"->"B" [label=" A very\nlong\nlabel"]
"Bob"->"C" [label=" A very\nlong\nlabel"]
"Bob"->"D" [label=" A very\nlong\nlabel"]
"Bob"->"E" [label=" A very\nlong\nlabel"]
"Bob"->"F" [label=" A very\nlong\nlabel"]
"Bob"->"G" [label=" A very\nlong\nlabel"]
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With