Extension:Wykres

From Linux Web Expert

MediaWiki extensions manual
wykres
Release status: unmaintained
File:ExtWykres.png
Implementation Tag
Description Graph plotting extension using the ‎<canvas> element.
Author(s) (sk197876talk)
Latest version 0.01 (2008-08-31)
MediaWiki
License GPL (excluding excanvas)
Download wykres.tar.gz
Quarterly downloads Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Public wikis using Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').

What can this extension do?

It can plot a couple of graphs of some functions with parameters. The parameters can be adjusted using handy sliders.

Usage

This example will draw four graphs on a canvas 300 pixels wide and 300 pixels high.

<wykres width="300" height="300" x="-3:6" y="-3:3" par="a[-2:3] b[-2:3] c[-2:3]">
    a*sin(b*x); a*sqrt(b*x); a*sin(b*x) / (c*x); a * ln(b*x)
</wykres>

Download instructions

Get it from wykres.tar.gz.

Installation

To install this extension

  1. extract wykres.tar.gz inside wiki/extensions directory.
  2. add the following to LocalSettings.php :
    require_once("$IP/extensions/wykres/wykres.php");
    

Configuration parameters

There are none. You can configure the look and feel modifying wykres/css/wykres.css and wykres/js/wykresStyles.js.

User rights

None.