1 Date: Wed, 19 May 2010 18:15:54 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.4.0RC-20100415)
4 Content-Type: application/x-phpwiki;
5 pagename=Help%2FPloticusPlugin;
9 Content-Transfer-Encoding: binary
11 The **Ploticus** [[Help:WikiPlugin|plugin]] passes all its arguments to the ploticus
12 binary and displays the result as PNG, GIF, EPS, SVG, SVGZ or SWF.
13 Ploticus is a free, GPL, non-interactive software package
14 for producing plots, charts, and graphics from data.
15 See http://ploticus.sourceforge.net/doc/welcome.html
17 Ploticus uses a cache expire date of days.
21 <<Ploticus device||=png [ploticus options...]
22 multiline ploticus script ...
26 or without any script: (not tested)
29 <<Ploticus -prefab vbars
30 data=myfile.dat delim=tab y=1
31 clickmapurl="http://mywiki.url/wiki/?pagename=@2"
32 clickmaplabel="@3" -csmap
36 TODO: ~PloticusSql - create intermediate data from SQL. Similar to [SqlResult|Help:SqlResultPlugin],
38 For example to produce nice looking pagehit statistics or ratings statistics.
39 Ploticus has its own sql support within #getproc data, but this would expose security information.
43 gif, png, jpeg, svg, svgz, eps, swf. Any -T parameter supported by ploticus. Default: png
45 optionally add data by <!plugin-list !> pagelist plugins. See [WikiPlugin|Help:WikiPlugin]
47 alt text for the image
49 use the given prefab script (may need PLOTICUS_PREFABS)
51 If a clickable map should be produced (not yet tested)
52 passed to ploticus as -csmap -mapfile $tempfile.map
56 All other arguments are used as source to ploticus.
60 For Windows you need either a gd library with GIF support or
61 a Ploticus with PNG support. This comes only with the Cygwin
64 == Optional Configuration ==
67 PLOTICUS_EXE = pl.exe (on windows)
68 PLOTICUS_EXE = /usr/local/bin/pl (elsewhere)
70 prefabs need the environment variable PLOTICUS_PREFABS. Default: /usr/share/ploticus.
71 Maybe also set by the config variable PLOTICUS_PREFABS.
73 See also [WikiPluginCached|Help:WikiPluginCached] options in config.ini.
77 <<Ploticus device||=png
79 #if @DEVICE in gif,png
83 // specify data using {proc getdata}
96 // render the pie graph using {proc pie}
99 explode: .2 0 0 0 0 .2 0
102 labelmode: line+label
105 colors: yellow pink pink pink pink yellow pink
109 The pie chart above was produced by this code from the ploticus
113 <<Ploticus device||=png alt="Sample Pie Chart"
115 #if @DEVICE in gif,png
119 // specify data using {proc getdata}
132 // render the pie graph using {proc pie}
135 explode: .2 0 0 0 0 .2 0
138 labelmode: line+label
141 colors: yellow pink pink pink pink yellow pink
147 * [[PhpWiki:ReiniUrban|Reini Urban]]
150 * [[Help:GraphVizPlugin]]
154 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]