Difference between revisions of "Wgraph:Demo loc"

From FollowTheScore
Jump to: navigation, search
Line 2: Line 2:
 
* x / y can be used for the same purpose
 
* 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
 
* coordinates will only be used if all nodes in a graph have been assigned absolute coordinates
 +
* the upper left corner is the reference point
  
 
{{#wgraph:svg|thumb=40|wgl|
 
{{#wgraph:svg|thumb=40|wgl|
 +
  node 0 { width 5 height 5 label '' loc 0;0}
 
   node A { width 100 height 30 loc 50;50}
 
   node A { width 100 height 30 loc 50;50}
 
   node B { width 200 height 80 x 150 y 80}
 
   node B { width 200 height 80 x 150 y 80}
 
}}
 
}}

Revision as of 10:32, 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
  • the upper left corner is the reference point

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

 node 0 { width 5 height 5 label  loc 0;0}
 node A { width 100 height 30 loc 50;50}
 node B { width 200 height 80 x 150 y 80}

}}