[Dot] Positioning of external labels (xlabels) via xlp attribute seems not to work
Ported Issue from Mantis Original ID: 2410 Reported By: pklesk
SEVERITY: FEATURE Submitted: 2014-01-10 13:37:53
DESCRIPTION
I have tried to apply xlabels on my graphs and position them using xlp. But the xlp attribute seems to have no effect,
and the xlabels are all attached to the top-left corner of nodes. Is it a bug or am I misusing it?
Here is a sample code:
digraph g {
forcelabels=true;
ranksep=0.25;
node [shape=point,height=0.1];
"1" [xlabel=<<FONT FACE='monospace' POINT-SIZE='4'>abc</FONT>>,xlp="-1.0,1.0",fillcolor=yellow,height=0.2];
"2" [xlabel=<<FONT FACE='monospace' POINT-SIZE='4'>abc</FONT>>,xlp="10.0,-10.0",fillcolor=dimgray,height=0.1];
"3" [xlabel=<<FONT FACE='monospace' POINT-SIZE='4'>abc</FONT>>,xlp="1000.0,1000.0",fillcolor=dimgray,height=0.1];
"1" -> "2"[label=<<FONT FACE='monospace' POINT-SIZE='6'>A3:B4</FONT>>,arrowsize=0.4];
"1" -> "3"[label=<<FONT FACE='monospace' POINT-SIZE='6'>C3:B4</FONT>>,arrowsize=0.4];
}
After generating a pdf (attached), all 'abc' xlabels are placed in top-left corners of nodes. Whereas I would like to control their placement myself,
preferable by specifying the location relatively to the node.