How to create more compact output (nodes of same level displayed not on same level)

Thanks for your help.
About 1)
My command is:
dot "Test.txt" -Tgif -Taspect=1 -o"output.gif"
This generates the following error:
Renderer type: "aspect=1" not recognized. Use one of: canon cmap cmapx...
 
About 2)
The unflatten command works. I have now indeed a more compact output. But I used to call dot in a macro in Microsoft Access. That works, but now adding unflatten, it is not recognized as a command. Is says "Can't open |" and next line "Can't open dot". I fixed this problem by making two macros.
 
I have added my testfile. I have made it anonymous, but the structure is the same as I have.

AttachmentSize
Drawing1.gif20.04 KB
Test.TXT21.91 KB

How to create more compact

Ah, that was the problem. OK. I changed it and now it works. I am quite satisfied with the result of the combined suggestions of you.
You helped me out with this problem, so a big thank you for that!
I have added Test.TXT which is the inputfile. If you have any additional suggestions to make it even better, please let me know.

How to create more compact

Three possibilities:
 - use dot -Taspect=1
 - run your graph through unflatten, which adjusts minimum edge lengths: unflatten -l3 my.gv | dot -Tpng -o my.png
 - do the adjusting of the minimum edge lengths on your own. You may have better information about the graph structure and can therefore do a better job.

How to create more compact

Thanks for your answer.
Possibility 1) I tried but it didn´t had any effect. It tries to stick to value 1, but my graph is too wide to be able to fit the value 1.
Possibility 2) As I have to use the command in an other program, it can handle only one executible. I tried different combinations of unflatten and dot (different commands, splitting etc but it didn´t work).
Possibility 3) This saves indeed SOME space, but I still have all the nodes on the same line. I want dot to be flexible and want sisters nodes not to be on the same line (at least nog necessarily).
 

How to create more compact

I don't understand your responses. When I set aspect=1, I get this, which is definitely different from the layout you get without the aspect attribute. As for 2), in most systems you can make the one executable a pipeline joining multiple programs together. And when I use
 
  unflatten -f -l3 comp.gv | dot -Tpng -Edir=none -Gsplines=ortho
 
I get this, which is also more compressed. Finally, for 3), if you vary the minlen attribute of the edges, the nodes will not appear on the same line. How did you change the graph?

Reply

Thanks for your help.
About 1)
My command is:
dot "Test.txt" -Tgif -Taspect=1 -o"output.gif"
This generates the following error:
Renderer type: "aspect=1" not recognized. Use one of: canon cmap cmapx...
 
About 2)
The unflatten command works. I have now indeed a more compact output. But I used to call dot in a macro in Microsoft Access. That works, but now adding unflatten, it is not recognized as a command. Is says "Can't open |" and next line "Can't open dot". I fixed this problem by making two macros.
 

Reply

Slight typo: -T is only used to specify output formats. -G is used to set graph attributes. So you want
 
  dot "Test.txt" -Tgif -Gaspect=1 -o"output.gif"

Recent comments