Re: [graphviz-interest] Avoiding label overlapping

بكر مصطفى <[email protected]>
Newsgroups gmane.comp.video.graphviz
Message-ID <CAF_UNsS7ZrxHwer3H85jkRqydxvNK78OUM71vjoX9xXGWJEQdQ@mail.gmail.com>
use the decorate declaration at edge level

edge [decorate=true]



On 17 March 2013 06:50, Peng Yu <[email protected]> wrote:

> 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
>

_______________________________________________
[email protected]
http://lists.research.att.com/mailman/listinfo/graphviz-interest
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.