[graphviz-interest] Avoiding label overlapping
Peng Yu <[email protected]>
| Newsgroups | gmane.comp.video.graphviz |
|---|---|
| Message-ID | <CABrM6wniDz2zDa36nCDDoQuuJ6wK-quu6gLHztWjNDo_wpbqOg@mail.gmail.com> |
Hi,
The following command produces a graph where it is hard to tell which
label is for a--d and which is for b--c. Is there a way to
automatically place labels so that it is easier to tell which edge a
label is for? Thanks!
~/linux/test/graphviz/lang/dot/digraph/overlap_label$ cat main.dot
graph
{
splines=true;
a [pos="0,0"];
b [pos="100,0"];
c [pos="0,100"];
d [pos="100,100"];
a -- b [label="a--b"];
a -- c [label="a--c"];
a -- d [label="a--d"];
b -- c [label="b--c"];
b -- d [label="b--d"];
c -- d [label="c--d"];
}
~/linux/test/graphviz/lang/dot/digraph/overlap_label$ dot -Tsvg -Knop
main.dot -o main.svg
--
Regards,
Peng
_______________________________________________
[email protected]
http://lists.research.att.com/mailman/listinfo/graphviz-interest