]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - pgsrc/Help%2FGraphVizPlugin
Use Mediawiki table
[SourceForge/phpwiki.git] / pgsrc / Help%2FGraphVizPlugin
1 Date: Thu, 19 Nov 2012 14:49:00 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.4.0)
3 Content-Type: application/x-phpwiki;
4   pagename=Help%2FGraphVizPlugin;
5   flags=PAGE_LOCKED;
6   markup=2;
7   charset=UTF-8
8 Content-Transfer-Encoding: binary
9
10 The **~GraphViz** [[Help:WikiPlugin|plugin]] passes all its arguments to the grapviz ##dot##
11 binary and displays the result as cached image (PNG, GIF, SVG) or
12 imagemap.  See http://www.graphviz.org/Documentation.php,
13 esp. http://www.graphviz.org/doc/info/lang.html for the **dot** language
14 specs.
15
16 == Notes ==
17 * We support all image types supported by GD so far, PNG most likely.
18 * On imgtype = imap, cpamx, ismap, cmap an additional mapfile will be produced.
19
20 == Usage ==
21
22 {{{
23 <<GraphViz [options...]
24    multiline dot script ...
25 >>
26 }}}
27
28 == Arguments ==
29
30 {| class="bordered"
31 |-
32 ! Argument
33 ! Description
34 ! Default value
35 |-
36 | **imgtype**
37 | Image type
38 | png
39 |-
40 | **alt**
41 | Image alternate text
42 |
43 |-
44 | **pages**
45 | <! plugin-list support !> encoded as pagename = ~[ URL = url ~]
46 |
47 |-
48 | **exclude**
49 | Exclude pages
50 |
51 |-
52 | **help**
53 | Display argument help
54 |
55 |}
56
57 == Example ==
58
59 {{{
60 <<GraphViz
61 digraph automata_0 {
62         size ="8.5, 11";
63         node  [ shape  = circle];
64         0 [ style = filled, color=lightgrey ];
65         2 [ shape = doublecircle ];
66         0 -> 2 [ label = "a " ];
67         0 -> 1 [ label = "other " ];
68         1 -> 2 [ label = "a " ];
69         1 -> 1 [ label = "other " ];
70         2 -> 2 [ label = "a " ];
71         2 -> 1 [ label = "other " ];
72         "Machine: a" [ shape = plaintext ];
73 }
74 >>
75 }}}
76
77 is rendered as
78
79 <<GraphViz
80 digraph automata_0 {
81         size ="8.5, 11";
82         node  [shape  = circle];
83         0 [ style = filled, color=lightgrey ];
84         2 [ shape = doublecircle ];
85         0 -> 2 [ label = "a " ];
86         0 -> 1 [ label = "other " ];
87         1 -> 2 [ label = "a " ];
88         1 -> 1 [ label = "other " ];
89         2 -> 2 [ label = "a " ];
90         2 -> 1 [ label = "other " ];
91         "Machine: a" [ shape = plaintext ];
92 }
93 >>
94
95 == Author ==
96 * [[PhpWiki:ReiniUrban|Reini Urban]]
97
98 <noinclude>
99 ----
100 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]
101 </noinclude>