Wgraph:Demo arrow mode

From FollowTheScore
Revision as of 10:48, 12 October 2007 by Gero (talk | contribs) (New page: If <tt>arrow_mode</tt> is ''fixed'' arrows will only have certain angles (multiples of 45°).<br> This is especially useful in combination with <tt>port_sharing</tt>. {|class=wikitable ! ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

If arrow_mode is fixed arrows will only have certain angles (multiples of 45°).
This is especially useful in combination with port_sharing.

arrow_mode=fixed arrow_mode=free
port_sharing no

{{#wgraph:svg|thumb=10|wgl|

 edge A X   {} edge B X {} edge C X {}
 edge A Y   {} edge B Y {} edge C Y {}
 node Y     { label "This is node Y" }
 arrow_mode fixed
 edgetype * { arrow_size 15 
              arrow_color red }

}}

{{#wgraph:name=Demo_arrowmode_2|svg|thumb=10|wgl|

 edge A X   {} edge B X {} edge C X {}
 edge A Y   {} edge B Y {} edge C Y {}
 node Y     { label "This is node Y" }
 arrow_mode free
 edgetype * { arrow_size 15 arrow_color blue }

}}

port_sharing yes

{{#wgraph:svg|name=Demo_arrowmode_3|thumb=10|wgl|

 edge A X   {} edge B X {} edge C X {}
 edge A Y   {} edge B Y {} edge C Y {}
 node Y     { label "This is node Y" }
 arrow_mode fixed
 port_sharing yes
 edgetype * { arrow_size 15 arrow_color red }

}}

{{#wgraph:name=Demo_arrowmode_4|svg|thumb=10|wgl|

 edge A X   {} edge B X {} edge C X {}
 edge A Y   {} edge B Y {} edge C Y {}
 node Y     { label "This is node Y" }
 arrow_mode free
 port_sharing yes
 edgetype * { arrow_size 15 arrow_color blue }

}}