summaryrefslogtreecommitdiffstats
path: root/share/extensions/funcplot.inx
blob: a7318ccbf80c51dc8fd35ab9b9819a8647b3b748 (plain)
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
<inkscape-extension>
    <_name>Function Plotter</_name>
    <id>org.inkscape.effect.funcplot</id>
	<dependency type="executable" location="extensions">funcplot.py</dependency>
	<dependency type="executable" location="extensions">inkex.py</dependency>
	<param name="tab" type="notebook">
	    <page name="sampling" _gui-text="Sampling">
	        <param name="xstart" type="float" min="-1000.0" max="1000.0" _gui-text="Start x-value">0.0</param>
	        <param name="xend" type="float" min="-1000.0" max="1000.0" _gui-text="End x-value">1.0</param>
	        <param name="ybottom" type="float" min="-1000.0" max="1000.0" _gui-text="y-value of rectangle's bottom">0.0</param>
	        <param name="ytop" type="float" min="-1000.0" max="1000.0" _gui-text="y-value of rectangle's top">1.0</param>
	        <param name="samples" type="int" min="2" max="1000" _gui-text="Samples">8</param>
	    </page>
	    <page name="desc" _gui-text="Help">
        	<param name="pythonfunctions" type="description">The following functions are available:
(the available functions are the standard python math functions)
ceil(x); fabs(x); floor(x); fmod(x,y); frexp(x); ldexp(x,i); modf(x); exp(x); log(x [, base]); log10(x); pow(x,y); sqrt(x); acos(x); asin(x); atan(x); atan2(y,x); cos(x); hypot(x,y); sin(x); tan(x); degrees(x); radians(x); cosh(x); sinh(x); tanh(x).

The constants pi and e are also available. </param>
	    </page>
	</param>
	<param name="fofx" type="string" _gui-text="Function">exp(-x*x)</param>
	<param name="fponum" type="boolean" _gui-text="Calculate first derivative numerically">true</param>
	<param name="fpofx" type="string" _gui-text="First derivative">x</param>
    <effect>
		<object-type>rect</object-type>
                <effects-menu>
                        <submenu _name="Render"/>
                </effects-menu>
    </effect>
    <script>
        <command reldir="extensions" interpreter="python">funcplot.py</command>
    </script>
</inkscape-extension>