Open main menu

Extension:Wykres

MediaWiki extensions manual
OOjs UI icon advanced.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.

Contents

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.

UsageEdit

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 instructionsEdit

Get it from wykres.tar.gz.

InstallationEdit

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 parametersEdit

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

User rightsEdit

None.

English  • polski