From: ozmikepittman Date: Mon, 19 May 2008 04:03:03 +0000 (+0000) Subject: Fixed minor error in the Function Plotter extension - see LP #230765 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b6405b51c2cf995b6c5327aa3a54ddff629192d6;p=inkscape.git Fixed minor error in the Function Plotter extension - see LP #230765 --- diff --git a/share/extensions/funcplot.py b/share/extensions/funcplot.py index 0b7c77ec9..24d6951b3 100644 --- a/share/extensions/funcplot.py +++ b/share/extensions/funcplot.py @@ -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 ',