funcplot.inx revision 39135a3e07243519dbe40a68e86a7ef524eb3f1b
2N/A<?xml version="1.0" encoding="UTF-8"?>
2N/A<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
2N/A <_name>Function Plotter</_name>
2N/A <id>org.inkscape.effect.funcplot</id>
2N/A <dependency type="executable" location="extensions">funcplot.py</dependency>
2N/A <dependency type="executable" location="extensions">inkex.py</dependency>
2N/A <param name="tab" type="notebook">
2N/A <page name="sampling" _gui-text="Range and Sampling">
2N/A <param name="xstart" type="float" min="-1000.0" max="1000.0" _gui-text="Start x-value">0.0</param>
2N/A <param name="xend" type="float" min="-1000.0" max="1000.0" _gui-text="End x-value">1.0</param>
2N/A <param name="times2pi" type="boolean" _gui-text="Multiply x-range by 2*pi">false</param>
2N/A <param name="ybottom" type="float" min="-1000.0" max="1000.0" _gui-text="y-value of rectangle's bottom">0.0</param>
2N/A <param name="ytop" type="float" min="-1000.0" max="1000.0" _gui-text="y-value of rectangle's top">1.0</param>
2N/A <param name="samples" type="int" min="2" max="1000" _gui-text="Samples">8</param>
2N/A <param name="isoscale" type="boolean" _gui-text="Isotropic scaling (uses smallest: width/xrange or height/yrange)">false</param>
2N/A <param name="polar" type="boolean" _gui-text="Use polar coordinates">true</param>
2N/A </page>
2N/A <page name="use" _gui-text="Use">
2N/A <_param name="funcplotuse" type="description">Select a rectangle before calling effect.
2N/ARectangle determines x and y scales.
2N/A
2N/AWith polar coordinates:
2N/A Start and End x-values define the angle range in radians.
2N/A x scale is set so left and right edges of rectangle are at +/-1.
2N/A Isotropic scaling is disabled.
2N/A First derivative is always determined numerically.</_param>
2N/A </page>
2N/A <page name="desc" _gui-text="Functions">
2N/A <_param name="pythonfunctions" type="description">Standard python math functions are available:
2N/A
2N/Aceil(x); fabs(x); floor(x); fmod(x,y); frexp(x); ldexp(x,i);
2N/Amodf(x); exp(x); log(x [, base]); log10(x); pow(x,y); sqrt(x);
2N/Aacos(x); asin(x); atan(x); atan2(y,x); hypot(x,y);
2N/Acos(x); sin(x); tan(x); degrees(x); radians(x);
2N/Acosh(x); sinh(x); tanh(x).
2N/A
2N/AThe constants pi and e are also available.</_param>
2N/A </page>
2N/A </param>
2N/A <param name="fofx" type="string" _gui-text="Function">exp(-x*x)</param>
2N/A <param name="fponum" type="boolean" _gui-text="Calculate first derivative numerically">true</param>
2N/A <param name="fpofx" type="string" _gui-text="First derivative">x</param>
2N/A <param name="remove" type="boolean" _gui-text="Remove rectangle">true</param>
2N/A <param name="drawaxis" type="boolean" _gui-text="Draw Axes">false</param>
2N/A <effect>
2N/A <object-type>rect</object-type>
2N/A <effects-menu>
2N/A <submenu _name="Render"/>
2N/A </effects-menu>
2N/A </effect>
<script>
<command reldir="extensions" interpreter="python">funcplot.py</command>
</script>
</inkscape-extension>