Cross Reference: /inkscape/share/extensions/funcplot.inx
funcplot.inx revision 1a41572c22fc37f83704e16263b10b78543c3923
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
39135a3e07243519dbe40a68e86a7ef524eb3f1bmfloryan<?xml version="1.0" encoding="UTF-8"?>
39135a3e07243519dbe40a68e86a7ef524eb3f1bmfloryan<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
39135a3e07243519dbe40a68e86a7ef524eb3f1bmfloryan <_name>Function Plotter</_name>
39135a3e07243519dbe40a68e86a7ef524eb3f1bmfloryan <id>org.inkscape.effect.funcplot</id>
39135a3e07243519dbe40a68e86a7ef524eb3f1bmfloryan <dependency type="executable" location="extensions">funcplot.py</dependency>
39135a3e07243519dbe40a68e86a7ef524eb3f1bmfloryan <dependency type="executable" location="extensions">inkex.py</dependency>
39135a3e07243519dbe40a68e86a7ef524eb3f1bmfloryan <param name="tab" type="notebook">
1a41572c22fc37f83704e16263b10b78543c3923buliabyak <page name="sampling" _gui-text="Range and sampling">
1a41572c22fc37f83704e16263b10b78543c3923buliabyak <param name="xstart" type="float" min="-1000.0" max="1000.0" _gui-text="Start X value">0.0</param>
1a41572c22fc37f83704e16263b10b78543c3923buliabyak <param name="xend" type="float" min="-1000.0" max="1000.0" _gui-text="End X value">1.0</param>
1a41572c22fc37f83704e16263b10b78543c3923buliabyak <param name="times2pi" type="boolean" _gui-text="Multiply X range by 2*pi">false</param>
1a41572c22fc37f83704e16263b10b78543c3923buliabyak <param name="ybottom" type="float" min="-1000.0" max="1000.0" _gui-text="Y value of rectangle's bottom">0.0</param>
1a41572c22fc37f83704e16263b10b78543c3923buliabyak <param name="ytop" type="float" min="-1000.0" max="1000.0" _gui-text="Y value of rectangle's top">1.0</param>
39135a3e07243519dbe40a68e86a7ef524eb3f1bmfloryan <param name="samples" type="int" min="2" max="1000" _gui-text="Samples">8</param>
1a41572c22fc37f83704e16263b10b78543c3923buliabyak <param name="isoscale" type="boolean" _gui-text="Isotropic scaling (uses smallest of width/xrange or height/yrange)">false</param>
39135a3e07243519dbe40a68e86a7ef524eb3f1bmfloryan <param name="polar" type="boolean" _gui-text="Use polar coordinates">true</param>
39135a3e07243519dbe40a68e86a7ef524eb3f1bmfloryan </page>
39135a3e07243519dbe40a68e86a7ef524eb3f1bmfloryan <page name="use" _gui-text="Use">
1a41572c22fc37f83704e16263b10b78543c3923buliabyak <_param name="funcplotuse" type="description">Select a rectangle before calling the extension,
1a41572c22fc37f83704e16263b10b78543c3923buliabyakit will determine X and Y scales.
91cdc6c06e37ed5336e3e5f81dc8a6f39c07b500pjrm
91cdc6c06e37ed5336e3e5f81dc8a6f39c07b500pjrmWith polar coordinates:
1a41572c22fc37f83704e16263b10b78543c3923buliabyak Start and end X values define the angle range in radians.
1a41572c22fc37f83704e16263b10b78543c3923buliabyak X scale is set so that left and right edges of rectangle are at +/-1.
91cdc6c06e37ed5336e3e5f81dc8a6f39c07b500pjrm Isotropic scaling is disabled.
91cdc6c06e37ed5336e3e5f81dc8a6f39c07b500pjrm First derivative is always determined numerically.</_param>
39135a3e07243519dbe40a68e86a7ef524eb3f1bmfloryan </page>
39135a3e07243519dbe40a68e86a7ef524eb3f1bmfloryan <page name="desc" _gui-text="Functions">
1a41572c22fc37f83704e16263b10b78543c3923buliabyak <_param name="pythonfunctions" type="description">Standard Python math functions are available:
91cdc6c06e37ed5336e3e5f81dc8a6f39c07b500pjrm
91cdc6c06e37ed5336e3e5f81dc8a6f39c07b500pjrmceil(x); fabs(x); floor(x); fmod(x,y); frexp(x); ldexp(x,i);
91cdc6c06e37ed5336e3e5f81dc8a6f39c07b500pjrmmodf(x); exp(x); log(x [, base]); log10(x); pow(x,y); sqrt(x);
91cdc6c06e37ed5336e3e5f81dc8a6f39c07b500pjrmacos(x); asin(x); atan(x); atan2(y,x); hypot(x,y);
91cdc6c06e37ed5336e3e5f81dc8a6f39c07b500pjrmcos(x); sin(x); tan(x); degrees(x); radians(x);
91cdc6c06e37ed5336e3e5f81dc8a6f39c07b500pjrmcosh(x); sinh(x); tanh(x).
91cdc6c06e37ed5336e3e5f81dc8a6f39c07b500pjrm
39135a3e07243519dbe40a68e86a7ef524eb3f1bmfloryanThe constants pi and e are also available.</_param>
39135a3e07243519dbe40a68e86a7ef524eb3f1bmfloryan </page>
39135a3e07243519dbe40a68e86a7ef524eb3f1bmfloryan </param>
39135a3e07243519dbe40a68e86a7ef524eb3f1bmfloryan <param name="fofx" type="string" _gui-text="Function">exp(-x*x)</param>
39135a3e07243519dbe40a68e86a7ef524eb3f1bmfloryan <param name="fponum" type="boolean" _gui-text="Calculate first derivative numerically">true</param>
39135a3e07243519dbe40a68e86a7ef524eb3f1bmfloryan <param name="fpofx" type="string" _gui-text="First derivative">x</param>
39135a3e07243519dbe40a68e86a7ef524eb3f1bmfloryan <param name="remove" type="boolean" _gui-text="Remove rectangle">true</param>
39135a3e07243519dbe40a68e86a7ef524eb3f1bmfloryan <param name="drawaxis" type="boolean" _gui-text="Draw Axes">false</param>
39135a3e07243519dbe40a68e86a7ef524eb3f1bmfloryan <effect>
39135a3e07243519dbe40a68e86a7ef524eb3f1bmfloryan <object-type>rect</object-type>
39135a3e07243519dbe40a68e86a7ef524eb3f1bmfloryan <effects-menu>
39135a3e07243519dbe40a68e86a7ef524eb3f1bmfloryan <submenu _name="Render"/>
39135a3e07243519dbe40a68e86a7ef524eb3f1bmfloryan </effects-menu>
39135a3e07243519dbe40a68e86a7ef524eb3f1bmfloryan </effect>
39135a3e07243519dbe40a68e86a7ef524eb3f1bmfloryan <script>
39135a3e07243519dbe40a68e86a7ef524eb3f1bmfloryan <command reldir="extensions" interpreter="python">funcplot.py</command>
39135a3e07243519dbe40a68e86a7ef524eb3f1bmfloryan </script>
91cdc6c06e37ed5336e3e5f81dc8a6f39c07b500pjrm</inkscape-extension>