The Ploticus WikiPlugin passes all its arguments to the ploticus binary and displays the result as PNG, GIF, EPS, SVG or SWF. Ploticus is a free, GPL, non-interactive software package for producing plots, charts, and graphics from data. See http://ploticus.sourceforge.net/doc/welcome.html

Usage

  <?plugin Ploticus device||=png [ploticus options...]
     multiline ploticus script ...
  ?>

Plugin Arguments

device: Default: png
alt: alt text for the image
-csmap: If a clickable map should be produced (not yet tested)
help: Show a help screen (not yet)

Known Problems

  1. For windows you need either a gd library with GIF support or a ploticus with PNG support. This comes only with the cygwin built pl221win32cygmax.zip.
  2. We support only images supported by GD so far (PNG most likely). No EPS, PS, SVG, SVGZ or SWG support yet due to API limitations in WikiPluginCached. No technical problems, so you can expect it soon.

Examples

Plugin Ploticus failed. sh: /usr/local/bin/pl: No such file or directory

The pie chart above was produced by this code from the ploticus testsuite:

<?plugin Ploticus device||=png alt="Sample Pie Chart"
#proc page
#if @DEVICE in gif,png
  scale: 0.7
#endif

//  specify data using {proc getdata}
#proc getdata
data:   Brazil 22
        Columbia 17
        "Costa Rica" 22
        Guatemala 3
        Honduras 12
        Mexico 14
        Nicaragua 28
        Belize 9
        United\nStates 21
        Canada 8

//  render the pie graph using {proc pie}
#proc pie
firstslice: 90
explode: .2 0 0 0 0  .2 0
datafield: 2
labelfield: 1
labelmode: line+label
center: 4 4
radius: 2
colors: yellow pink pink pink pink yellow pink
labelfarout: 1.05
?>

PHP Warning

lib/pear/Cache/Container/file.php (In template 'body' < 'html'):339: Warning: mkdir() [<a href='function.mkdir'>function.mkdir</a>]: Permission denied

lib/WikiPluginCached.php (In template 'body' < 'html'):921: Warning: Ploticus error: outputfile '/tmp/Ploticusvi0Kuy.png' not created