1 Date: Fri, 24 Sep 2004 21:30:51 +0200
2 Mime-Version: 1.0 (Produced by PhpWiki 1.3.11pre)
3 X-Rcs-Id: $Id: PloticusPlugin,v 1.4 2004-09-26 18:10:40 rurban Exp $
4 Content-Type: application/x-phpwiki;
5 pagename=PloticusPlugin;
6 pgsrc_version="2 $Revision: 1.4 $";
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
20 <?plugin Ploticus device||=png [ploticus options...]
21 multiline ploticus script ...
27 gif, png, jpeg or svg. Soon also PS or SWG. Default: png
29 optionally add data by <!plugin-list !> pagelist plugins.
31 alt text for the image
33 use the given prefab script (may need $_ENV~['PLOTICUS_PREFABS'~])
35 If a clickable map should be produced (not yet tested)
37 Show a help screen (not yet)
41 # For windows you need either a gd library with GIF support or
42 a ploticus with PNG support. This comes only with the cygwin
44 # We support only images supported by GD (PNG most likely) and now
45 also SVG. MAP support not yet tested. No EPS, PS or SWG support yet.
49 <?plugin Ploticus device||=png
51 #if @DEVICE in gif,png
55 // specify data using {proc getdata}
68 // render the pie graph using {proc pie}
71 explode: .2 0 0 0 0 .2 0
77 colors: yellow pink pink pink pink yellow pink
81 The pie chart above was produced by this code from the ploticus
85 <?plugin Ploticus device||=png alt="Sample Pie Chart"
87 #if @DEVICE in gif,png
91 // specify data using {proc getdata}
104 // render the pie graph using {proc pie}
107 explode: .2 0 0 0 0 .2 0
110 labelmode: line+label
113 colors: yellow pink pink pink pink yellow pink