You can set the maximum size of your output image by setting the size , which is an attribute of the chart object. For instance.
digraph "my_graph" { graph[ fontname = "Helvetica-Oblique", fontsize = 12, label = "some label", size = "7.75,10.25" ]; node [ shape = polygon, sides = 4 ]; }
In this example, I set the size of the graph to 7.75 x 10.25, the size of which you want to make sure that your graph is suitable for a sheet of 8.5 x 11 inches, and also so that it occupies all the space on this sheet.
source share