Ploticus extension

From FollowTheScore
Revision as of 09:33, 20 August 2012 by Gero (talk | contribs) (Examples)
Jump to: navigation, search

Ploticus Tool

PLOTICUS is a free softwarere package for creating plots and charts.

Ploticus Extension

The Mediawiki Extension:Ploticus allows to embed Ploticus into a Mediawiki installation. When using the Ploticus Extension you have to deliver a script which contains the data on which the chart shall be based.

This is where DPL comes into the game: DPL can be used to extract that data from information contained in the articles of your wiki. For that purpose we made a small modification to the Ploticus Extension: Our modified version can take data not only from a hand-written script but also from the output of a DPL script.

Our version of the MediaWiki Ploticus Extension is contained in the Download Archive of DPL.

Example 1 (static vesrion)

{{#ploticus:

# get data from DPL query
#proc getdata
  data:
"Jack" 151
"Jim" 23
"Susan" 123

//  render pie graph
#proc pie
datafield: 2
labelfmtstring: @@1\n@@2\n@@PCT%
labelmode: line+label
center: 3 3
radius: 1.1
colors: dullyellow drabgreen pink
labelfarout: 1.2
explode: 0 0.2 0 0

}}

{{#ploticus:

  1. get data from DPL query
  2. proc getdata
 data:

"Jack" 151 "Jim" 23 "Susan" 123

// render pie graph

  1. proc pie

datafield: 2 labelfmtstring: @@1\n@@2\n@@PCT% labelmode: line+label outlinedetails: color=blue center: 3 3 radius: 1.1 colors: dullyellow drabgreen pink powderblue lavender labelfarout: 1.2 explode: 0 0.2 0 0

}}