Difference between revisions of "Wgraph:Demo arrow mode"
From FollowTheScore
(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 ! ...) |
|||
Line 43: | Line 43: | ||
arrow_mode free | arrow_mode free | ||
port_sharing yes | port_sharing yes | ||
+ | edgetype * { arrow_size 15 arrow_color blue } | ||
+ | }} | ||
+ | |--------------------- | ||
+ | !in_port_sharing vs. out_port_sharing | ||
+ | | | ||
+ | {{#wgraph:svg|name=Demo_arrowmode_5|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 | ||
+ | in_port_sharing yes | ||
+ | edgetype * { arrow_size 15 arrow_color red } | ||
+ | }} | ||
+ | | | ||
+ | {{#wgraph:name=Demo_arrowmode_6|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 | ||
+ | out_port_sharing yes | ||
edgetype * { arrow_size 15 arrow_color blue } | edgetype * { arrow_size 15 arrow_color blue } | ||
}} | }} | ||
|} | |} |
Latest revision as of 06:13, 28 October 2007
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 } }} |
in_port_sharing vs. out_port_sharing |
{{#wgraph:svg|name=Demo_arrowmode_5|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 in_port_sharing yes edgetype * { arrow_size 15 arrow_color red } }} |
{{#wgraph:name=Demo_arrowmode_6|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 out_port_sharing yes edgetype * { arrow_size 15 arrow_color blue } }} |