Optimize label position in Graphviz
The following point file generates 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"]
}
Is there a way to change the position of the labels to reduce the size of the chart?
Shortcuts can be arranged with lp. You can change labelangle. There are headlabelalso taillabellabels.
Find the "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"]
}
