[Dot] labeldistance does not affect normal labels in dot
Ported Issue from Mantis Original ID: 302 Reported By: Andrew Sadler3
SEVERITY: MINOR Submitted: 2003-10-28 12:50:39
OS: --
VERSION: 1.10
DESCRIPTION
The manual states that the labeldistance property of an edge can be
used to specify the distance of the label from the edge.
It infact only(?) affects the port labels.
I'd like to use this feature to make my labels in dot graphs appear closer to their edges. (especialy useful if your edge labels are actual LaTeX formulas which will not be as wide when printed as they appear to "dot").
STEPS TO REPRODUCE
digraph partition {
edge [labeldistance=10000.0];
z1 [label="X
"];
subgraph{rank=same;
z2 [label="Y
"];
z3 [label="Z
"];
};
alpha [label="\Alpha
"];
alpha -> alpha [label="$\\{7\\}$"];
z1 -> z1 [label="$\\{1,4\\}$"];
z2 -> z2 [label="$\\{2,3\\}$"];
z3 -> z3 [label="$\\{5,6\\}$"];
z1 -> z2 [label="$\\{1\\}$"];
z2 -> z1 [label="$\\{2,3\\}$"];
alpha -> z3 [label="$\\{7\\}$"];
z1 -> alpha [label="$\\{1,4\\}$"];
z2 -> alpha [label="$\\{2,3\\}$"];
z3 -> alpha [label="$\\{5,6\\}$"];
}
ADDITIONAL INFORMATION
I've hijacked the labeldistance attribute and used it as an absolute value to be added to the label position.
I'll add the changes to grappa when I get a moment.