From: erg Date: Tue, 12 Feb 2008 23:03:34 +0000 (+0000) Subject: Update info files X-Git-Tag: LAST_LIBGRAPH~32^2~4728 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7359100b6934d1a1f1540ab4e3e38487681b3452;p=graphviz Update info files --- diff --git a/doc/info/attrs.html b/doc/info/attrs.html index dfd0b7cf2..9ffe40e55 100644 --- a/doc/info/attrs.html +++ b/doc/info/attrs.html @@ -1251,6 +1251,9 @@ This field indicates which graph component uses the attribute.
Sets direction of graph layout. For example, if rankdir="LR", and barring cycles, an edge T -> H; will go from left to right. By default, graphs are laid out from top to bottom. +

+ This attribute also has a side-effect in determining how record nodes + are interpreted. See record shapes.

ranksep
In dot, this gives the desired rank separation, in inches. This is diff --git a/doc/info/shapes.html b/doc/info/shapes.html index b546defb2..93abb9087 100644 --- a/doc/info/shapes.html +++ b/doc/info/shapes.html @@ -173,6 +173,14 @@ horizontal. Thus, a record with label "A | B | C | D" will have 4 fields oriented left to right, while "{A | B | C | D}" will have them from top to bottom and "A | { B | C } | D" will have "B" over "C", with "A" to the left and "D" to the right of "B" and "C". +

+The initial orientation of a record node depends on the +rankdir attribute. If this attribute +is TB (the default) or TB, corresponding to vertical +layouts, the top-level fields in a record are displayed horizontally. +If, however, this attribute is LR or RL, +corresponding to horizontal layouts, the top-level fields are +displayed vertically.

As an example of a record node, the dot input

@@ -189,6 +197,13 @@ digraph structs { yields the figure<BR> <IMG SRC=record.gif> <P> +If we add the line +<XMP> + rankdir=LR + +we get the layout
+ +

If we change node struct1 to have shape Mrecord, it then looks like: