invert output with commandline

Hello,

I fail trying to invert the y axis for the output file. My approach is using the commandline to render a file.
This is the command I used: dot -y -Tsvg -o output.svg < input.dot The usage of the "-y" option does not have any affect. My top level node is always on the bottom.

I think there is something that I have to consider. Does anyone have a hint for me?
Thx

The input.dot looks like this:
strict digraph G {
140342237601488 [ shape=box3d, label=4161];
140342294540944 [ label=app_type];
140342294540944 -> 140342237601488 [ ];
140342274199248 [ shape=plaintext, label=<Block1>];
140342274199248:140342274199248 -> 140342237601488 [ ];
140342274198800 [ shape=plaintext, label=<meas_br1SourceTemperatureMeasurandbridge input == BR1P-BR1Nmeasurement gain == 32>];
140342274198800:140342274198800 -> 140342274199248:140342274199248 [ ];
140342237672912 [ shape=plaintext, label=<meas_br2SourceTemperatureMeasurandbridge input == BR1P-BR1Nmeasurement gain == 1>];
140342237672912:140342237672912 -> 140342274199248:140342274199248 [ ];
140342237674000 [ shape=plaintext, label=<Block2>];
140342237674000:140342237674000 -> 140342237601488 [ ];
140342237674064 [ shape=plaintext, label=<meas_br1SourceTemperatureMeasurandbridge input == BR1P-BR1Nmeasurement gain == 32>];
140342237674064:140342237674064 -> 140342237674000:140342237674000 [ ];
140342237675152 [ shape=plaintext, label=<meas_br2SourceTemperatureMeasurandbridge input == BR2P-BR2Nmeasurement gain == 1>];
140342237675152:140342237675152 -> 140342237674000:140342237674000 [ ];

}

The -y flag is only useful

The -y flag is only useful for text output such as dot, xdot or plain. It allows the user to read the position information with the y coordinates already flipped. To flip the drawing as you want, set rankdir=BT in the graph or run dot -Grankdir=BT.

Recent comments