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