Difference between revisions of "Wgraph:Demo loc"

From FollowTheScore
Jump to: navigation, search
(New page: {{subst:Wgraph:Demo linear_segments}})
 
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
* loc can be used to set a pair of coordinates
 +
* x / y can be used for the same purpose
 +
* coordinates will only be used if all nodes in a graph have been assigned absolute coordinates
 +
** note that assigning the absolute position of 0/0 to a node will not work as aiSee believes that the coordinates have not been set
 +
* the upper left corner is the reference point
  
* note the vertical line from D1 to E1 as compared to D2 / E2
+
{{#wgraph:svg|thumb=40|wgl|gdl|
{{#wgraph:svg|thumb=40|wgl|
+
   node 0 { width 10 height 10 label '' loc 1;1 color red }
   splines yes
+
   node A { width 100 height 30 loc 50;50}
  subgraph s1 { state boxed  linear_segments yes }
+
   node B { width 200 height 80 x 150 y 80}
  node A1 s1 {}  node B1 s1 {}  node C1 s1 {}  node D1 s1 {}  node E1 s1 {} node F1 s1 {}  
 
   edge A1 B1 {}  edge A1 C1 {}  edge A1 D1 {}  edge D1 E1 {}  edge E1 F1 {}  edge A1 F1 {}
 
  subgraph s2 { state boxed }
 
   node A2 s2 {}  node B2 s2 {}  node C2 s2 {}  node D2 s2 {}  node E2 s2 {}  node F2 s2 {}
 
  edge A2 B2 {}  edge A2 C2 {}  edge A2 D2 {}  edge D2 E2 {} edge E2 F2 {}  edge A2 F2 {}
 
 
 
 
}}
 
}}

Latest revision as of 09:40, 28 October 2007

  • loc can be used to set a pair of coordinates
  • x / y can be used for the same purpose
  • coordinates will only be used if all nodes in a graph have been assigned absolute coordinates
    • note that assigning the absolute position of 0/0 to a node will not work as aiSee believes that the coordinates have not been set
  • the upper left corner is the reference point

{{#wgraph:svg|thumb=40|wgl|gdl|

 node 0 { width  10 height 10 label  loc 1;1 color red }
 node A { width 100 height 30 loc 50;50}
 node B { width 200 height 80 x 150 y 80}

}}