Code

adjust function parameters for the now present proper quoting behavior; this fix...
authoracspike <acspike@users.sourceforge.net>
Sun, 19 Aug 2007 22:58:25 +0000 (22:58 +0000)
committeracspike <acspike@users.sourceforge.net>
Sun, 19 Aug 2007 22:58:25 +0000 (22:58 +0000)
share/extensions/funcplot.py

index 482df634a84c9d514e499e9c69ee4d6fbcb79431..3a64e4e95708856ae708bfde846d3e7037f424b7 100644 (file)
@@ -71,9 +71,9 @@ def drawfunction(xstart, xend, ybottom, ytop, samples, width, height, left, bott
 \r
     # functions specified by the user\r
     if fx != "":\r
-        f = eval('lambda x: ' + fx)\r
+        f = eval('lambda x: ' + fx.strip('"'))\r
     if fpx != "":\r
-        fp = eval('lambda x: ' + fpx)\r
+        fp = eval('lambda x: ' + fpx.strip('"'))\r
 \r
     # step is the distance between nodes on x\r
     step = (xend - xstart) / (samples-1)\r