home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 November / CHIP_2011_11.iso / Programy / Narzedzia / Inkscape / Inkscape-0.48.2-1-win32.exe / share / extensions / funcplot.inx < prev    next >
Extensible Markup Language  |  2011-07-08  |  3KB  |  55 lines

  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 (uses smallest of 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" xml:space="preserve">Select a rectangle before calling the extension,
  20. it will determine X and Y scales.
  21.  
  22. With polar coordinates:
  23.    Start and end X values define the angle range in radians.
  24.    X scale is set so that 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" xml:space="preserve">Standard Python math functions are available:
  30.  
  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).
  36.  
  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>
  55.