diff options
| -rw-r--r-- | share/extensions/funcplot.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/extensions/funcplot.py b/share/extensions/funcplot.py index 482df634a..3a64e4e95 100644 --- a/share/extensions/funcplot.py +++ b/share/extensions/funcplot.py @@ -71,9 +71,9 @@ def drawfunction(xstart, xend, ybottom, ytop, samples, width, height, left, bott # functions specified by the user
if fx != "":
- f = eval('lambda x: ' + fx)
+ f = eval('lambda x: ' + fx.strip('"'))
if fpx != "":
- fp = eval('lambda x: ' + fpx)
+ fp = eval('lambda x: ' + fpx.strip('"'))
# step is the distance between nodes on x
step = (xend - xstart) / (samples-1)
|
