Difference between revisions of "Wgraph:Example 1"

From FollowTheScore
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
== sample graphs for mediawiki parser extension 'wgraph' ==
+
== A first example ==
 
 
  
 
{|class=wikitable
 
{|class=wikitable
!with manhattan edges,<br>top down orientation
+
![[Wgraph:Sample 1.wgl|WGL source]]
!with splines<br>left to right orientation
+
!orientation = top_to_bottom<br>node.color = lightyellow
 +
!align=left|orientation = left_to_right<br>node.color = lightmagenta<br>node.shape = hexagon<br>node.width = 30<br>edge.color = red
 
|-
 
|-
|
+
|{{Wgraph:Sample 1.wgl}}
{{#wgraph: thumb=50 | svg | png |
+
|{{#wgraph: name= wgraph_sample_1  | png | svg |
node Picasso        { }
+
 
edge Signac Picasso { }
+
  {{Wgraph:Sample 1.wgl}}
node Gauguin        { type Painter;Poet }
+
    node.color = lightyellow
node Henri_Matisse  { url Henri_Matisse }
+
  }}
node Signac        { type Painter scaling 2 bordercolor blue}
 
  
edge Gauguin "Henri Matisse" {
+
|{{#wgraph: name= wgraph_sample_1a | png | svg |
                      type friend;roommate}
 
edge from Gauguin to Signac {
 
                      type friend
 
                      label "good friend"}
 
edge from Signac to Henri_Matisse {}
 
nodetype Poet      { color=green shape=ellipse }
 
nodetype Painter    { color yellow }
 
edgetype roommate  { color gold }
 
edgetype friend    { color #ff33aa fontname:HelvO10 }
 
orientation top_to_bottom 
 
splines = yes
 
}}
 
|
 
{{#wgraph: thumb=50 | wgl |
 
node Picasso        { }
 
edge Signac Picasso { }
 
node Gauguin        { type Painter;Poet }
 
node Henri_Matisse  { url Henri_Matisse }
 
node Signac        { type Painter scaling 2 bordercolor blue}
 
  
edge Gauguin "Henri Matisse" {
+
  {{Wgraph:Sample 1.wgl}}  
                      type friend;roommate}
+
    orientation = left_to_right
edge from Gauguin to Signac {
+
    node.color = lightmagenta
                      type friend
+
    node.shape = hexagon
                      label "good friend"}
+
    node.width = 30
edge from Signac to Henri_Matisse {}
+
     edge.color = red
nodetype Poet      { color=green shape=ellipse }
+
   }}
nodetype Painter    { color yellow }
 
edgetype roommate  { color gold }
 
edgetype friend     { color #ff33aa fontname:HelvO10 }
 
orientation top_to_bottom    
 
splines = yes
 
}}
 
 
|}
 
|}
 +
 +
To see a more complex graph (which will be automatically produced from the contents of this wiki, try the following link:
 +
[[Special:Call/Catgraph,uses2=CalendarSingle,layout=forcedir,userparm=repulsion:300|Graph with relations around '''calendar''']]
 +
 +
continue with [[Wgraph:Example 2]] ..
 +
or      see  [[Wgraph:Example Timebar]] ..
 +
or      see  [[Wgraph:Example Holiday Planner]] ..
 +
[[Category:Wgraph]]

Latest revision as of 06:37, 15 August 2007

A first example

WGL source orientation = top_to_bottom
node.color = lightyellow
orientation = left_to_right
node.color = lightmagenta
node.shape = hexagon
node.width = 30
edge.color = red
node A {}
node B {}
node C {}
node D {}
node E {}
edge A D {}
edge A B {}
edge A C {}
edge B C {}
edge B E {}
png | svg |
  node A {} 
node B {}
node C {}
node D {}
node E {}
edge A D {}
edge A B {}
edge A C {}
edge B C {}
edge B E {}
   node.color = lightyellow
 }}
png | svg |
  node A {} 
node B {}
node C {}
node D {}
node E {}
edge A D {}
edge A B {}
edge A C {}
edge B C {}
edge B E {} 
   orientation = left_to_right
   node.color = lightmagenta
   node.shape = hexagon
   node.width = 30
   edge.color = red
 }}

To see a more complex graph (which will be automatically produced from the contents of this wiki, try the following link:

Graph with relations around calendar
continue with Wgraph:Example 2 ..
or       see  Wgraph:Example Timebar ..
or       see  Wgraph:Example Holiday Planner ..