Code

Fixed minor error in the Function Plotter extension - see LP #230765
authorozmikepittman <ozmikepittman@users.sourceforge.net>
Mon, 19 May 2008 04:03:03 +0000 (04:03 +0000)
committerozmikepittman <ozmikepittman@users.sourceforge.net>
Mon, 19 May 2008 04:03:03 +0000 (04:03 +0000)
share/extensions/funcplot.py

index 0b7c77ec90c2ae979cad648412dd05cfd27cbec7..24d6951b3518fb722fe61c59cb6972c47d75617e 100644 (file)
@@ -114,7 +114,7 @@ def drawfunction(xstart, xend, ybottom, ytop, samples, width, height, left, bott
         dx0 = (x1 - x0)/ds 
         dy0 = (y1 - y0)/ds
     else: # derivative given by the user
-        dx0 = 0 # Only works for rectangular coordinates
+        dx0 = 1 # Only works for rectangular coordinates
         dy0 = fp(xstart)
 
     # Start curve
@@ -138,7 +138,7 @@ def drawfunction(xstart, xend, ybottom, ytop, samples, width, height, left, bott
             dx1 = (x1 - x2)/ds
             dy1 = (y1 - y2)/ds
         else: # derivative given by the user
-            dx1 = 0 # Only works for rectangular coordinates
+            dx1 = 1 # Only works for rectangular coordinates
             dy1 = fp(x1)
         # create curve
         a.append([' C ',