When I render a dot file to a PNG, the output from using graphviz-java is different from using the dot executable on my machine.
Both produce PNG images of the same size (4214x116) but the java rendering has a bunch of space that is not utilized and just transparent.
Attached are the dot file itself and both output files (output_dot.png and output_java.png).
Here is the input dot file (I had to change the ending to .txt to get GitHub to accept it as an attachment):
dependenyGraph.dot.txt
The code I'm using to produce the java output png is as simple as it gets:
Graphviz.fromFile(file).render(Format.PNG).toFile(new File("output_java.png"));
Here's the output PNG of that:

And the dot command I use to produce the dot output is:
dot -Tpng dependenyGraph.dot -o output_dot.png
And this is the output PNG of that:

I would have expected that the two outputs should be the same. Is there something else I should be configuring in my Java code to get the output the same as when I use the dot command?
When I render a dot file to a PNG, the output from using graphviz-java is different from using the dot executable on my machine.
Both produce PNG images of the same size (4214x116) but the java rendering has a bunch of space that is not utilized and just transparent.
Attached are the dot file itself and both output files (output_dot.png and output_java.png).
Here is the input dot file (I had to change the ending to .txt to get GitHub to accept it as an attachment):
dependenyGraph.dot.txt
The code I'm using to produce the java output png is as simple as it gets:
Graphviz.fromFile(file).render(Format.PNG).toFile(new File("output_java.png"));Here's the output PNG of that:

And the dot command I use to produce the dot output is:
dot -Tpng dependenyGraph.dot -o output_dot.pngAnd this is the output PNG of that:

I would have expected that the two outputs should be the same. Is there something else I should be configuring in my Java code to get the output the same as when I use the dot command?