1 Date: Fri, 7 Dec 2012 14:58:45 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.4.0)
3 Content-Type: application/x-phpwiki;
4 pagename=Help%2FPloticusPlugin;
7 Content-Transfer-Encoding: binary
9 The **Ploticus** [[Help:WikiPlugin|plugin]] passes all its arguments to the Ploticus
10 binary and displays the result as PNG, GIF, EPS, SVG, SVGZ or SWF.
11 Ploticus is a free, GPL, non-interactive software package
12 for producing plots, charts, and graphics from data.
13 See http://ploticus.sourceforge.net/doc/welcome.html
15 Ploticus uses a cache expire date of days.
19 <<Ploticus device||=png [ploticus options...]
20 multiline ploticus script ...
24 or without any script: (not tested)
27 <<Ploticus -prefab vbars
28 data=myfile.dat delim=tab y=1
29 clickmapurl="http://mywiki.url/wiki/?pagename=@2"
30 clickmaplabel="@3" -csmap
34 TODO: ~PloticusSql - create intermediate data from SQL. Similar to [[Help:SqlResultPlugin|SqlResult]] plugin,
36 For example to produce nice looking pagehit statistics or ratings statistics.
37 Ploticus has its own sql support within #getproc data, but this would expose security information.
48 | gif, png, jpeg, svg, svgz, eps, swf. Any -T parameter supported by Ploticus.
52 | optionally add data by <!plugin-list !> pagelist plugins. See [[Help:WikiPlugin]]
56 | alt text for the image
60 | use the given prefab script (may need PLOTICUS_PREFABS)
64 | If a clickable map should be produced (not yet tested) passed to Ploticus as -csmap -mapfile $tempfile.map
72 All other arguments are used as source to Ploticus.
76 For Windows you need either a gd library with GIF support or
77 a Ploticus with PNG support. This comes only with the Cygwin
80 == Optional Configuration ==
83 PLOTICUS_EXE = pl.exe (on Windows)
84 PLOTICUS_EXE = /usr/local/bin/pl (elsewhere)
86 prefabs need the environment variable PLOTICUS_PREFABS. Default: /usr/share/ploticus.
87 Maybe also set by the config variable PLOTICUS_PREFABS.
89 See also [[Help:WikiPluginCached]] options in config.ini.
93 <<Ploticus device||=png
95 #if @DEVICE in gif,png
99 // specify data using {proc getdata}
112 // render the pie graph using {proc pie}
115 explode: .2 0 0 0 0 .2 0
118 labelmode: line+label
121 colors: yellow pink pink pink pink yellow pink
125 The pie chart above was produced by this code from the Ploticus
129 <<Ploticus device||=png alt="Sample Pie Chart"
131 #if @DEVICE in gif,png
135 // specify data using {proc getdata}
148 // render the pie graph using {proc pie}
151 explode: .2 0 0 0 0 .2 0
154 labelmode: line+label
157 colors: yellow pink pink pink pink yellow pink
163 * [[Help:Reini Urban|Reini Urban]]
166 * [[Help:GraphVizPlugin]]
170 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]