Extension:Wykres

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
Crystal Clear action run.svg
wykres
Release status: beta
ExtWykres.png
Implementation Tag
Description Graph plotting extension using the <canvas> element.
Author(s) (sk197876talk)
Latest version 0.01 (2008-08-31)
License GPL (excluding excanvas)
Download wykres.tar.gz
Hooks used
ParserAfterTidy
Translate the Wykres extension if it is available at translatewiki.net
Check usage and version matrix.

What can this extension do?[edit]

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

Usage[edit]

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[edit]

Get it from wykres.tar.gz.

Installation[edit]

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[edit]

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

User rights[edit]

None.

Other languages: English  • polski