Wgraph:Tutorial shapes
From FollowTheScore
node shapes
{{#wgraph: png | thumb = 60 |
edge box hexagon { hidden }
node box { shape box }
node hexagon { shape hexagon }
edge rhomb triangle { hidden }
node rhomb { shape rhomb }
node triangle { shape triangle }
edge triangle ellipse { hidden }
edge ellipse circle { hidden }
node ellipse { shape ellipse }
node circle { shape circle }
edge trapezoid uptrapezoid { hidden }
node trapezoid { shape trapezoid }
node uptrapezoid { shape uptrapezoid }
edge uptrapezoid lparallelogram { hidden }
edge lparallelogram rparallelogram { hidden }
node lparallelogram { shape lparallelogram }
node rparallelogram { shape rparallelogram }
orientation = top_to_bottom node.color = lightyellow
}}
- the 'shape' property is used to select one of the symbols shown above.
- 'box' is the default shape
- 'rhomboid' can be used as an alias for 'rhomb'
- the proportions adapt to the label text, unless explicitly set otherwise
- changing the 'orientation' of a graph influences the orientation of its shapes;
the graph below was defined with 'orientation left_to_right':
{{#wgraph: name=Tutorial shapes_2 | png | thumb = 60 |
edge box hexagon { hidden }
node box { shape box }
node hexagon { shape hexagon }
edge rhomb triangle { hidden }
node rhomb { shape rhomb }
node triangle { shape triangle }
edge triangle ellipse { hidden }
edge ellipse circle { hidden }
node ellipse { shape ellipse }
node circle { shape circle }
edge trapezoid uptrapezoid { hidden }
node trapezoid { shape trapezoid }
node uptrapezoid { shape uptrapezoid }
edge uptrapezoid lparallelogram { hidden }
edge lparallelogram rparallelogram { hidden }
node lparallelogram { shape lparallelogram }
node rparallelogram { shape rparallelogram }
orientation = left_to_right node.color = lightmagenta
}}