Attribute "size"

Use:optional
Used by:graph
Description:Maximum width and height of drawing, in inches. If defined and the drawing is too large, the drawing is uniformly scaled down so that it fits within the given size. Note that there is some interaction between the size and ratio attributes.
Values:(0.1,0.1) .. (1000.0,1000.0)
Default Value:
Sponsored links:

Example 1/2:
Source code:
<graph file-name="graphs/size1" nodesep="1.8" ranksep="0.5" size="2,2" label="size='2,2'">
  
<node id="a"/>
<node id="b"/>
<node id="c"/>
<node id="d"/>
<edge from="a" to="b"/>
<edge from="a" to="c"/>
<edge from="b" to="c"/>
<edge from="b" to="d"/>
<edge from="c" to="d"/>
</graph>
Example 2/2:
Source code:
<graph file-name="graphs/size2" nodesep="1.8" ranksep="0.5" size="5,5" label="size='5,5'">
  
<node id="a"/>
<node id="b"/>
<node id="c"/>
<node id="d"/>
<edge from="a" to="b"/>
<edge from="a" to="c"/>
<edge from="b" to="c"/>
<edge from="b" to="d"/>
<edge from="c" to="d"/>
</graph>
Sponsored links

 Copyright 2002-2010 by Martin Loetzsch (http://martin-loetzsch.de), all rights reserved. See the DotML licence for details.