From b6405b51c2cf995b6c5327aa3a54ddff629192d6 Mon Sep 17 00:00:00 2001 From: ozmikepittman Date: Mon, 19 May 2008 04:03:03 +0000 Subject: [PATCH] Fixed minor error in the Function Plotter extension - see LP #230765 --- share/extensions/funcplot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ', -- 2.30.2