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;
8 Content-Transfer-Encoding: binary
10 The **Ploticus** [[Help:WikiPlugin|plugin]] passes all its arguments to the Ploticus
11 binary and displays the result as PNG, GIF, EPS, SVG, SVGZ or SWF.
12 Ploticus is a free, GPL, non-interactive software package
13 for producing plots, charts, and graphics from data.
14 See http://ploticus.sourceforge.net/doc/welcome.html
16 Ploticus uses a cache expire date of days.
20 <<Ploticus device||=png [ploticus options...]
21 multiline ploticus script ...
25 or without any script: (not tested)
28 <<Ploticus -prefab vbars
29 data=myfile.dat delim=tab y=1
30 clickmapurl="http://mywiki.url/wiki/?pagename=@2"
31 clickmaplabel="@3" -csmap
35 TODO: ~PloticusSql - create intermediate data from SQL. Similar to [[Help:SqlResultPlugin|SqlResult]] plugin,
37 For example to produce nice looking pagehit statistics or ratings statistics.
38 Ploticus has its own sql support within #getproc data, but this would expose security information.
49 | gif, png, jpeg, svg, svgz, eps, swf. Any -T parameter supported by Ploticus.
53 | optionally add data by <!plugin-list !> pagelist plugins. See [[Help:WikiPlugin]]
57 | alt text for the image
61 | use the given prefab script (may need PLOTICUS_PREFABS)
65 | If a clickable map should be produced (not yet tested) passed to Ploticus as -csmap -mapfile $tempfile.map
73 All other arguments are used as source to Ploticus.
77 For Windows you need either a gd library with GIF support or
78 a Ploticus with PNG support. This comes only with the Cygwin
81 == Optional Configuration ==
84 PLOTICUS_EXE = pl.exe (on Windows)
85 PLOTICUS_EXE = /usr/local/bin/pl (elsewhere)
87 prefabs need the environment variable PLOTICUS_PREFABS. Default: /usr/share/ploticus.
88 Maybe also set by the config variable PLOTICUS_PREFABS.
90 See also [[Help:WikiPluginCached]] options in config.ini.
94 <<Ploticus device||=png
96 #if @DEVICE in gif,png
100 // specify data using {proc getdata}
113 // render the pie graph using {proc pie}
116 explode: .2 0 0 0 0 .2 0
119 labelmode: line+label
122 colors: yellow pink pink pink pink yellow pink
126 The pie chart above was produced by this code from the Ploticus
130 <<Ploticus device||=png alt="Sample Pie Chart"
132 #if @DEVICE in gif,png
136 // specify data using {proc getdata}
149 // render the pie graph using {proc pie}
152 explode: .2 0 0 0 0 .2 0
155 labelmode: line+label
158 colors: yellow pink pink pink pink yellow pink
164 * [[Help:Reini Urban|Reini Urban]]
167 * [[Help:GraphVizPlugin]]
171 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]