]> granicus.if.org Git - graphviz/commitdiff
Update info files
authorerg <devnull@localhost>
Tue, 12 Feb 2008 23:03:34 +0000 (23:03 +0000)
committererg <devnull@localhost>
Tue, 12 Feb 2008 23:03:34 +0000 (23:03 +0000)
doc/info/attrs.html
doc/info/shapes.html

index dfd0b7cf25fe7eba0c69f276df0547ccbaf05b61..9ffe40e55f8fe4a40ae8eedf75a2496ca31a20d9 100644 (file)
@@ -1251,6 +1251,9 @@ This field indicates which graph component uses the attribute.
 <DD>  Sets direction of graph layout. For example, if <B>rankdir</B>="LR", 
   and barring cycles, an edge <CODE>T -> H;</CODE> will go
   from left to right. By default, graphs are laid out from top to bottom.
+  <P>
+  This attribute also has a side-effect in determining how record nodes
+  are interpreted. See <A HREF="shapes.html#record">record shapes</A>.
 
 <DT><A NAME=d:ranksep HREF=#a:ranksep><STRONG>ranksep</STRONG></A>
 <DD>  In dot, this gives the desired rank separation, in inches. This is
index b546defb237528cf11e646b959638f3034571612..93abb9087066630888ce38c84f594cd7b6847831 100644 (file)
@@ -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".
+<P> 
+The initial orientation of a record node depends on the
+<A HREF="attrs.html#d:rankdir">rankdir</A> attribute. If this attribute
+is <TT>TB</TT> (the default) or <TT>TB</TT>, corresponding to vertical
+layouts, the top-level fields in a record are displayed horizontally.
+If, however, this attribute is <TT>LR</TT> or <TT>RL</TT>, 
+corresponding to horizontal layouts, the top-level fields are 
+displayed vertically.
 <P>
 As an example of a record node, the dot input
 <XMP>
@@ -189,6 +197,13 @@ digraph structs {
 yields the figure<BR>
 <IMG SRC=record.gif>
 <P>
+If we add the line
+<XMP>
+    rankdir=LR
+</XMP>
+we get the layout<BR>
+<IMG SRC=record2.gif>
+<P>
 If we change node <TT>struct1</TT> to have shape <TT>Mrecord</TT>,
 it then looks like:<BR>
 <IMG SRC=mrecord.gif>