diff options
author | Jiakai Zhang <zhjk@nyu.edu> | 2016-02-13 01:18:19 +0300 |
---|---|---|
committer | Jiakai Zhang <zhjk@nyu.edu> | 2016-02-13 01:18:19 +0300 |
commit | 69342e146f544074731349d61181cd9e2290f4e3 (patch) | |
tree | af0fbb4ec48304b85fa379f0fba470f3ca1eee3b | |
parent | 3230b41a3b40c2242f846715fe0118ab175d593a (diff) |
return format instead of 'with format', then gnuplot.plot can take
Gnuplot format as input. For example, gnuplot.plot({'legend',x,y,'axis
x1y2 with points pointtype 7 pointsize 0.1'})
remove format error detection because it's useless
-rw-r--r-- | gnuplot.lua | 3 |
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 |