1 Date: Tue, 4 Jan 2011 12:22:49 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.4.0RC1)
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 [[Help:SqlResultPlugin|SqlResult]] plugin,
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.
50 | gif, png, jpeg, svg, svgz, eps, swf. Any -T parameter supported by Ploticus.
54 | optionally add data by <!plugin-list !> pagelist plugins. See [[Help:WikiPlugin]]
58 | alt text for the image
62 | use the given prefab script (may need PLOTICUS_PREFABS)
66 | If a clickable map should be produced (not yet tested) passed to Ploticus as -csmap -mapfile $tempfile.map
74 All other arguments are used as source to Ploticus.
78 For Windows you need either a gd library with GIF support or
79 a Ploticus with PNG support. This comes only with the Cygwin
82 == Optional Configuration ==
85 PLOTICUS_EXE = pl.exe (on windows)
86 PLOTICUS_EXE = /usr/local/bin/pl (elsewhere)
88 prefabs need the environment variable PLOTICUS_PREFABS. Default: /usr/share/ploticus.
89 Maybe also set by the config variable PLOTICUS_PREFABS.
91 See also [[Help:WikiPluginCached]] options in config.ini.
95 <<Ploticus device||=png
97 #if @DEVICE in gif,png
101 // specify data using {proc getdata}
114 // render the pie graph using {proc pie}
117 explode: .2 0 0 0 0 .2 0
120 labelmode: line+label
123 colors: yellow pink pink pink pink yellow pink
127 The pie chart above was produced by this code from the Ploticus
131 <<Ploticus device||=png alt="Sample Pie Chart"
133 #if @DEVICE in gif,png
137 // specify data using {proc getdata}
150 // render the pie graph using {proc pie}
153 explode: .2 0 0 0 0 .2 0
156 labelmode: line+label
159 colors: yellow pink pink pink pink yellow pink
165 * [[PhpWiki:ReiniUrban|Reini Urban]]
168 * [[Help:GraphVizPlugin]]
172 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]