Re: [graphviz-interest] Too much white space?

"Emden R. Gansner" <[email protected]> Mon, 08 Dec 2014 14:50:05 -0500
Newsgroups gmane.comp.video.graphviz
Message-ID <[email protected]>
I assume you are concerned with horizontal spacing, as vertical spacing is as tight as it can be 
given the rank=same and edge constraints.
The problem is your setting ratio=fill while setting size to 30in x 20in. When ratio=fill, and the 
base drawing has either dimension more than
the corresponding size dimension (Your drawing is basically 36in x 90in.), the positions are 
adjusted so that the layout has the same aspect
ratio as given by size, and then the whole drawing is scaled down to fit into size. Since the 
natural size and the specified size have very
different aspect ratios, the drawing is expanded greatly in the x direction, and then everything is 
shrunk. This give you the excess space and
the small text.

If you turn off ratio and size, you'll get a tall, thin but legible drawing. If you want it thinner, 
you can adjust the nodesep attribute. (You can also
use ratio=compress to get a tighter packing.) If you set the size to 30,20, the drawing will be 
uniformly scaled down to fit, which will give you a drawing
about 8in x 20in., with barely legible text. Both horizontal and vertical packing are now fairly 
tight, and that's the problem. The drawing is naturally
90 in. tall. To force is into 20 in. causes everything, including font size, to be scaled by 9/2. 
Also, increasing the font size doesn't really help, as this
typically linearly scales up the drawing, which then gets linearly scaled down again, so the 
resulting output font size is the same as before. (By the way,
the only use of fontsize in the graph is
    graph [fontsize=14];
Note that this only affects graph labels, not node text. To change node label sizes, you would need
    node [fontsize=14];
)

     Emden
_______________________________________________
[email protected]
http://lists.research.att.com/mailman/listinfo/graphviz-interest