funcplot.inx revision 2db300164334e95c7b73b6f2b12ea12be5db2142
39135a3e07243519dbe40a68e86a7ef524eb3f1bmfloryan<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
2db300164334e95c7b73b6f2b12ea12be5db2142Alvin Penner <dependency type="executable" location="extensions">funcplot.py</dependency>
2db300164334e95c7b73b6f2b12ea12be5db2142Alvin Penner <dependency type="executable" location="extensions">inkex.py</dependency>
2db300164334e95c7b73b6f2b12ea12be5db2142Alvin Penner <page name="sampling" _gui-text="Range and sampling">
2db300164334e95c7b73b6f2b12ea12be5db2142Alvin Penner <param name="xstart" type="float" min="-1000.0" max="1000.0" _gui-text="Start X value:">0.0</param>
2db300164334e95c7b73b6f2b12ea12be5db2142Alvin Penner <param name="xend" type="float" min="-1000.0" max="1000.0" _gui-text="End X value:">1.0</param>
2db300164334e95c7b73b6f2b12ea12be5db2142Alvin Penner <param name="times2pi" type="boolean" _gui-text="Multiply X range by 2*pi">false</param>
2db300164334e95c7b73b6f2b12ea12be5db2142Alvin Penner <param name="ybottom" type="float" min="-1000.0" max="1000.0" _gui-text="Y value of rectangle's bottom:">0.0</param>
2db300164334e95c7b73b6f2b12ea12be5db2142Alvin Penner <param name="ytop" type="float" min="-1000.0" max="1000.0" _gui-text="Y value of rectangle's top:">1.0</param>
2db300164334e95c7b73b6f2b12ea12be5db2142Alvin Penner <param name="samples" type="int" min="2" max="1000" _gui-text="Number of samples:">8</param>
2db300164334e95c7b73b6f2b12ea12be5db2142Alvin Penner <param name="isoscale" type="boolean" _gui-text="Isotropic scaling">false</param>
2db300164334e95c7b73b6f2b12ea12be5db2142Alvin Penner <_param name="isoscaledesc" type="description">When set, Isotropic scaling uses smallest of width/xrange or height/yrange</_param>
2db300164334e95c7b73b6f2b12ea12be5db2142Alvin Penner <param name="polar" type="boolean" _gui-text="Use polar coordinates">true</param>
2db300164334e95c7b73b6f2b12ea12be5db2142Alvin Penner <_param name="funcplotuse" type="description" xml:space="preserve">Select a rectangle before calling the extension,
2db300164334e95c7b73b6f2b12ea12be5db2142Alvin Pennerit will determine X and Y scales. If you wish to fill the area, then add x-axis endpoints.
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>
2db300164334e95c7b73b6f2b12ea12be5db2142Alvin Penner <_param name="pythonfunctions" type="description" xml:space="preserve">Standard Python math functions are available:
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).
39135a3e07243519dbe40a68e86a7ef524eb3f1bmfloryanThe constants pi and e are also available.</_param>
2db300164334e95c7b73b6f2b12ea12be5db2142Alvin Penner <param name="fofx" type="string" _gui-text="Function:">exp(-x*x)</param>
2db300164334e95c7b73b6f2b12ea12be5db2142Alvin Penner <param name="fponum" type="boolean" _gui-text="Calculate first derivative numerically">true</param>
2db300164334e95c7b73b6f2b12ea12be5db2142Alvin Penner <param name="fpofx" type="string" _gui-text="First derivative:">x</param>
2db300164334e95c7b73b6f2b12ea12be5db2142Alvin Penner <param name="remove" type="boolean" _gui-text="Remove rectangle">true</param>
2db300164334e95c7b73b6f2b12ea12be5db2142Alvin Penner <param name="drawaxis" type="boolean" _gui-text="Draw Axes">false</param>
2db300164334e95c7b73b6f2b12ea12be5db2142Alvin Penner <param name="endpts" type="boolean" _gui-text="Add x-axis endpoints">false</param>
2db300164334e95c7b73b6f2b12ea12be5db2142Alvin Penner <command reldir="extensions" interpreter="python">funcplot.py</command>