1 Date: Tue, 2 Jan 2007 13:30:17 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.3.13)
3 X-Rcs-Id: $Id: Help%2FPloticusPlugin,v 1.2 2007-01-03 21:27:11 rurban Exp $
4 Content-Type: application/x-phpwiki;
5 pagename=Help%2FPloticusPlugin;
6 pgsrc_version="2 $Revision: 1.2 $";
10 Content-Transfer-Encoding: binary
12 The Ploticus WikiPlugin passes all its arguments to the ploticus
13 binary and displays the result as PNG, GIF, EPS, SVG, SVGZ or SWF.
14 Ploticus is a free, GPL, non-interactive software package
15 for producing plots, charts, and graphics from data.
16 See http://ploticus.sourceforge.net/doc/welcome.html
18 Ploticus uses a cache expire date of days.
22 <?plugin Ploticus device||=png [ploticus options...]
23 multiline ploticus script ...
27 or without any script: (not tested)
30 <?plugin Ploticus -prefab vbars
31 data=myfile.dat delim=tab y=1
32 clickmapurl="http://mywiki.url/wiki/?pagename=@2"
33 clickmaplabel="@3" -csmap
37 TODO: PloticusSql - create intermediate data from SQL. Similar to [SqlResult|Help:SqlResultPlugin],
39 For example to produce nice looking pagehit statistics or ratings statistics.
40 Ploticus has its own sql support within #getproc data, but this would expose security information.
44 gif, png, jpeg, svg, svgz, eps, swf. Any -T parameter supported by ploticus. Default: png
46 optionally add data by <!plugin-list !> pagelist plugins. See Help:WikiPlugin
48 alt text for the image
50 use the given prefab script (may need PLOTICUS_PREFABS)
52 If a clickable map should be produced (not yet tested)
53 passed to ploticus as -csmap -mapfile $tempfile.map
57 All other arguments are used as source to ploticus.
61 # For windows you need either a gd library with GIF support or
62 a ploticus with PNG support. This comes only with the cygwin
65 ! Optional Configuration
68 PLOTICUS_EXE = pl.exe (on windows)
69 PLOTICUS_EXE = /usr/local/bin/pl (elsewhere)
71 prefabs need the environment variable PLOTICUS_PREFABS. Default: /usr/share/ploticus.
72 Maybe also set by the config variable PLOTICUS_PREFABS.
74 See also [WikiPluginCached|Help:WikiPluginCached] options in config.ini.
78 <?plugin Ploticus device||=png
80 #if @DEVICE in gif,png
84 // specify data using {proc getdata}
97 // render the pie graph using {proc pie}
100 explode: .2 0 0 0 0 .2 0
103 labelmode: line+label
106 colors: yellow pink pink pink pink yellow pink
110 The pie chart above was produced by this code from the ploticus
114 <?plugin Ploticus device||=png alt="Sample Pie Chart"
116 #if @DEVICE in gif,png
120 // specify data using {proc getdata}
133 // render the pie graph using {proc pie}
136 explode: .2 0 0 0 0 .2 0
139 labelmode: line+label
142 colors: yellow pink pink pink pink yellow pink
154 PhpWikiDocumentation Help:WikiPlugin