1 Date: Wed, 28 May 2008 19:06:04 +0200
2 Mime-Version: 1.0 (Produced by PhpWiki 1.3.14-20080124)
3 Content-Type: application/x-phpwiki;
4 pagename=Help%2FPloticusPlugin;
8 Content-Transfer-Encoding: binary
10 The Ploticus WikiPlugin 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 <?plugin Ploticus device||=png [ploticus options...]
21 multiline ploticus script ...
25 or without any script: (not tested)
28 <?plugin 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 [SqlResult|Help:SqlResultPlugin],
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.
42 gif, png, jpeg, svg, svgz, eps, swf. Any -T parameter supported by ploticus. Default: png
44 optionally add data by <!plugin-list !> pagelist plugins. See [WikiPlugin|Help:WikiPlugin]
46 alt text for the image
48 use the given prefab script (may need PLOTICUS_PREFABS)
50 If a clickable map should be produced (not yet tested)
51 passed to ploticus as -csmap -mapfile $tempfile.map
55 All other arguments are used as source to ploticus.
59 # For windows you need either a gd library with GIF support or
60 a ploticus with PNG support. This comes only with the cygwin
63 ! Optional Configuration
66 PLOTICUS_EXE = pl.exe (on windows)
67 PLOTICUS_EXE = /usr/local/bin/pl (elsewhere)
69 prefabs need the environment variable PLOTICUS_PREFABS. Default: /usr/share/ploticus.
70 Maybe also set by the config variable PLOTICUS_PREFABS.
72 See also [WikiPluginCached|Help:WikiPluginCached] options in config.ini.
76 <?plugin Ploticus device||=png
78 #if @DEVICE in gif,png
82 // specify data using {proc getdata}
95 // render the pie graph using {proc pie}
98 explode: .2 0 0 0 0 .2 0
101 labelmode: line+label
104 colors: yellow pink pink pink pink yellow pink
108 The pie chart above was produced by this code from the ploticus
112 <?plugin Ploticus device||=png alt="Sample Pie Chart"
114 #if @DEVICE in gif,png
118 // specify data using {proc getdata}
131 // render the pie graph using {proc pie}
134 explode: .2 0 0 0 0 .2 0
137 labelmode: line+label
140 colors: yellow pink pink pink pink yellow pink
147 [Reini Urban|PhpWiki:ReiniUrban]
152 [PhpWikiDocumentation] [WikiPlugin|Help:WikiPlugin]