I am trying to introduce whitespace in my layout to later fill-in with graphics or text. I’m doing this by having extra nodes which are pined. See example graph
strict graph "" {
graph [bb="",
epsilon=0.00001,
inputscale=72,
maxiter=5000,
notranslate=True
];
node [label="\N"];
0 [element=8,
height=0.5,
width=0.75];
1 [element=6,
height=0.5,
width=0.75];
0 -- 1 [pos="-444.93,-1043.1 -436.1,-1034.8 -425.16,-1024.4 -416.33,-1016.1"];
2 [element=8,
height=0.5,
width=0.75];
1 -- 2 [pos="-377.01,-1010.3 -367.98,-1013.8 -357.66,-1017.9 -348.64,-1021.5"];
29 [element=6,
height=0.5,
width=0.75];
1 -- 29 [pos="-407.62,-983.53 -412.53,-971.75 -418.97,-956.29 -423.86,-944.53"];
3 [element=6,
height=0.5,
width=0.75];
...................................
"extra-6790" [fixedshape=True,
height=2,
pin=True,
pos="-3757.313131313131,803.9070707070705",
shape=square,
width=2];
"extra-6791" [fixedshape=True,
height=2,
pin=True,
pos="-3757.313131313131,930.1090909090908",
shape=square,
width=2];
However, my layout is always offset. I’ve tried different normalization
or notranslate
flags and I’ve tried changing lef/right definitions of pined nodes. I tried adding edges between my nodes. Nothing seems to work. See image showing the offset problem - the nodes spelling “TEST” are pinned and there is a gap for them, but it’s translated. To run this, I used this command with the dot file above:
neato -v tmp.dot -Tbmp -o graph.bmp -Gmaxiter=1 -Gmode=sgd
I did notice that even after running 1 iteration, things are offset. I’ve tried versions 2.5 and 4.0. Behavior is present in both neato-major and neato-sgd. Thank you!