Difference between revisions of "Wgraph:Tutorial size"

From FollowTheScore
Jump to: navigation, search
(New page: == Size of Symbols == There are several factors which influence the size of a symbol. {{#wgraph: png | wgl | thumb = 60 | node A { } node B { label "longer labels create larger s...)
 
 
Line 10: Line 10:
 
   node E  { stretch 3 shrink 2 }
 
   node E  { stretch 3 shrink 2 }
  
   {{wgraph comment |A|short labels lead to small symbols}}
+
   {{Wgraph:Comment |A|short labels lead to small symbols}}
   {{wgraph comment |B|the size adapts; text lines are broken according to the 'textwidth' property}}
+
   {{Wgraph:Comment |B|the size adapts; text lines are broken according to the 'textwidth' property}}
   {{wgraph comment |C|you can set 'width' and 'height' explicitly}}
+
   {{Wgraph:Comment |C|you can set 'width' and 'height' explicitly}}
   {{wgraph comment |D|you can use a 'scaling' factor (float)}}
+
   {{Wgraph:Comment |D|you can use a 'scaling' factor (float)}}
   {{wgraph comment |E|you can use 'stretch' and 'shrink' factors (integer)}}
+
   {{Wgraph:Comment |E|you can use 'stretch' and 'shrink' factors (integer)}}
 
   
 
   
 
   orientation = left_to_right
 
   orientation = left_to_right

Latest revision as of 16:44, 21 July 2007

Size of Symbols

There are several factors which influence the size of a symbol.

{{#wgraph: png | wgl | thumb = 60 |

 node A   { }
 node B   { label "longer labels create larger symbols" }
 node C   { width 60 height 80 }
 node D   { scaling 2.3 }
 node E   { stretch 3 shrink 2 }
   node "A__c" { color #e7e7e7 bordercolor white label "short labels lead to small symbols" }
 edge from "A" to "A__c" { color lightgray linestyle dotted arrowstyle none }
   node "B__c" { color #e7e7e7 bordercolor white label "the size adapts; text lines are broken according to the 'textwidth' property" }
 edge from "B" to "B__c" { color lightgray linestyle dotted arrowstyle none }
   node "C__c" { color #e7e7e7 bordercolor white label "you can set 'width' and 'height' explicitly" }
 edge from "C" to "C__c" { color lightgray linestyle dotted arrowstyle none }
   node "D__c" { color #e7e7e7 bordercolor white label "you can use a 'scaling' factor (float)" }
 edge from "D" to "D__c" { color lightgray linestyle dotted arrowstyle none }
   node "E__c" { color #e7e7e7 bordercolor white label "you can use 'stretch' and 'shrink' factors (integer)" }
 edge from "E" to "E__c" { color lightgray linestyle dotted arrowstyle none }

 orientation = left_to_right
 node.color = lightyellow

}}