Re: [graphviz-interest] Avoiding label overlapping

Peng Yu <[email protected]>
Newsgroups gmane.comp.video.graphviz
Message-ID <CABrM6wnpcG=6obm8xy8GkD-e35Skg0wS9g=WHrSFDBnC7TSBcQ@mail.gmail.com>
Not sure how it is done. The following doesn't change the label
positions. I only see something like "/_" which I am not sure what it
means.

Would you please show me an example? 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", decorate=true];
  a -- c [label="a--c", decorate=true];
  a -- d [label="a--d", decorate=true];
  b -- c [label="b--c", decorate=true];
  b -- d [label="b--d", decorate=true];
  c -- d [label="c--d", decorate=true];
}

On Sat, Mar 16, 2013 at 11:50 PM, بكر مصطفى <[email protected]> wrote:
> 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
>
>



-- 
Regards,
Peng
_______________________________________________
[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.