Code

Extensions. Consistency fix and UI improvements (Render submenu, part 2).
[inkscape.git] / share / extensions / funcplot.inx
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="Number of samples:">8</param>
15             <param name="isoscale" type="boolean" _gui-text="Isotropic scaling">false</param>
16             <_param name="isoscaledesc" type="description">When set, Isotropic scaling uses smallest of width/xrange or height/yrange</_param>
17             <param name="polar" type="boolean" _gui-text="Use polar coordinates">true</param>
18         </page>
19         <page name="use" _gui-text="Use">
20             <_param name="funcplotuse" type="description" xml:space="preserve">Select a rectangle before calling the extension,
21 it will determine X and Y scales.
23 With polar coordinates:
24    Start and end X values define the angle range in radians.
25    X scale is set so that left and right edges of rectangle are at +/-1.
26    Isotropic scaling is disabled.
27    First derivative is always determined numerically.</_param>
28         </page>
29         <page name="desc" _gui-text="Functions">
30             <_param name="pythonfunctions" type="description" xml:space="preserve">Standard Python math functions are available:
32 ceil(x); fabs(x); floor(x); fmod(x,y); frexp(x); ldexp(x,i); 
33 modf(x); exp(x); log(x [, base]); log10(x); pow(x,y); sqrt(x); 
34 acos(x); asin(x); atan(x); atan2(y,x); hypot(x,y); 
35 cos(x); sin(x); tan(x); degrees(x); radians(x); 
36 cosh(x); sinh(x); tanh(x).
38 The constants pi and e are also available.</_param>
39         </page>
40     </param>
41     <param name="fofx" type="string" _gui-text="Function:">exp(-x*x)</param>
42     <param name="fponum" type="boolean" _gui-text="Calculate first derivative numerically">true</param>
43     <param name="fpofx" type="string" _gui-text="First derivative:">x</param>
44     <param name="remove" type="boolean" _gui-text="Remove rectangle">true</param>
45     <param name="drawaxis" type="boolean" _gui-text="Draw Axes">false</param>
46     <effect>
47         <object-type>rect</object-type>
48         <effects-menu>
49             <submenu _name="Render"/>
50         </effects-menu>
51     </effect>
52     <script>
53         <command reldir="extensions" interpreter="python">funcplot.py</command>
54     </script>
55 </inkscape-extension>