Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/gnuplot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoumith Chintala <soumith@gmail.com>2016-03-07 22:14:39 +0300
committerSoumith Chintala <soumith@gmail.com>2016-03-07 22:14:39 +0300
commitb98c5ae2fcb3a904a52e0ef6449bc42c7ce26de9 (patch)
treead35d93d2f0200e0dabfed0c9f33394239ffd812
parentfa0167b437099e97db46db2333ca7feaa17b5b47 (diff)
parent69342e146f544074731349d61181cd9e2290f4e3 (diff)
Merge pull request #20 from Jiakai/master
change gnuplot.plot format string
-rw-r--r--gnuplot.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/gnuplot.lua b/gnuplot.lua
index 22f82e6..bc1f861 100644
--- a/gnuplot.lua
+++ b/gnuplot.lua
@@ -588,9 +588,8 @@ local function gnuplot_string(legend,x,y,format)
elseif f == '~' or f == 'csplines' then return 'smooth csplines'
elseif f == 'acsplines' then return 'smooth acsplines'
elseif f == 'V' or f == 'v' or f == 'vectors' then vecplot[i]=true;return 'with vectors'
- else return 'with ' .. f
+ else return f
end
- error("format string accepted: '.' or '-' or '+' or '+-' or '~' or '~ COEF'")
end
for i=1,#legend do
if i > 1 then hstr = hstr .. ' , ' end