Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001957graphvizDotpublic2010-09-15 14:452011-04-28 04:03
ReporterJustin Dobbs 
Assigned Togviz 
PlatformOSx86-Windows-XPOS Version
Summary0001957: Labels overlap edges and nodes and can be unreadable

I'm trying to draw a state machine using dot. I was using Visio but
would prefer not to waste time arranging nodes and drawing primitives.

Some of my labels are rather long, and get jumbled up either against
shapes or over each other. The result is pretty hard to read.

It would be nice if:

1) There were a way to place labels right over edges, perhaps with a
solid white background to clear the way for the text

2) The routing strategy incorporated the size of the label, so that the
label isn't just pasted on over whatever happens to be there.

Sweet tool though!
Additional Information

Edge labeling is not Graphviz' best strength.
A work around could be defining those edge labels as nodes and set node border color to white.

Actually, dot does do 2). Each edge label is treated as a dummy node and allocated its own
space, away from any node or other edge label. What you are seeing here is a real bug, in which
one edge label is being assigned the same position as another.

The bug is related to the warning you should be seeing. At present, dot does not allow a node
to be constrained twice by subgraphs. In your input, you place s5 in cluster W and also say that
S5 and sX0 to have the same rank. You only get to choose one. If you comment out
    rank = same;
    s5; sX0;

the problem goes away. You still need to decide if you want sX0 in cluster X or not.

Concerning 1), we are working on providing a post-processing labeling feature. This will be
helpful in certain cases, but as space isn't allocated, it may fail with very large labels.
Also, if you use HTML-like labels for the edges, you can arrange to have the label text drawn
on a white rectangle.
TagsNo tags attached.
VERSION     2.27
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:03 user1 New Issue
2011-04-28 04:03 user1 Assigned To => user1

MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker