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:
authorkoray kavukcuoglu <koray@kavukcuoglu.org>2015-02-19 02:39:06 +0300
committerkoray kavukcuoglu <koray@kavukcuoglu.org>2015-02-19 02:39:06 +0300
commit35f4250471217f66329781e2818c9ef8cbe7b5f3 (patch)
tree4f3a3308adc464f8b3878d85cdf71c5c216914ab
parent78b59793890678ef4cd5444e05c98c4543f6e320 (diff)
parentf077b670ed99a8bd724a63ff7637576f741a84c3 (diff)
Merge pull request #5 from Atcold/patch-1
Wrong version checking
-rw-r--r--gnuplot.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnuplot.lua b/gnuplot.lua
index d33ebbe..5cfe4ff 100644
--- a/gnuplot.lua
+++ b/gnuplot.lua
@@ -190,7 +190,7 @@ local function findgnuplotexe()
if v < 4 then
error('gnuplot version 4 is required')
end
- if vv < 4 then
+ if v == 4 and vv < 4 then
-- try to find gnuplot44
if o == 'linux' and paths.filep('/usr/bin/gnuplot44') then
local ss = '/usr/bin/gnuplot44'
@@ -261,7 +261,7 @@ function gnuplot.setgnuplotexe(exe)
_gptable.exe = exe
local v,vv = findgnuplotversion(exe)
if v < 4 then error('gnuplot version 4 is required') end
- if vv < 4 then
+ if v == 4 and vv < 4 then
_gptable.hasrefresh = false
print('Some functionality like adding title, labels, ... will be disabled, it is better to install gnuplot version 4.4')
else