Wgraph:Tutorial size

From FollowTheScore
Jump to: navigation, search

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

}}