]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - pgsrc/Help%2FGraphVizPlugin
Add verbatim for Example
[SourceForge/phpwiki.git] / pgsrc / Help%2FGraphVizPlugin
1 Date: Thu,  9 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 =imgtype= |
31   Default: png
32 =alt= |
33   img alt text.
34 =pages= |
35   <! plugin-list support !> encoded as pagename = ~[ URL = url ~]
36 =exclude= |
37   Exclude pages
38 =help= |
39   Display argument help.
40
41 == Example ==
42
43 {{{
44 <<GraphViz
45 digraph automata_0 {
46         size ="8.5, 11";
47         node  [ shape  = circle];
48         0 [ style = filled, color=lightgrey ];
49         2 [ shape = doublecircle ];
50         0 -> 2 [ label = "a " ];
51         0 -> 1 [ label = "other " ];
52         1 -> 2 [ label = "a " ];
53         1 -> 1 [ label = "other " ];
54         2 -> 2 [ label = "a " ];
55         2 -> 1 [ label = "other " ];
56         "Machine: a" [ shape = plaintext ];
57 }
58 >>
59 }}}
60
61 is rendered as
62
63 <<GraphViz
64 digraph automata_0 {
65         size ="8.5, 11";
66         node  [shape  = circle];
67         0 [ style = filled, color=lightgrey ];
68         2 [ shape = doublecircle ];
69         0 -> 2 [ label = "a " ];
70         0 -> 1 [ label = "other " ];
71         1 -> 2 [ label = "a " ];
72         1 -> 1 [ label = "other " ];
73         2 -> 2 [ label = "a " ];
74         2 -> 1 [ label = "other " ];
75         "Machine: a" [ shape = plaintext ];
76 }
77 >>
78
79 == Author ==
80 * [[PhpWiki:ReiniUrban|Reini Urban]]
81
82 <noinclude>
83 ----
84 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]
85 </noinclude>