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>2013-06-16 20:42:16 +0400
committerkoray kavukcuoglu <koray@kavukcuoglu.org>2013-06-16 20:42:16 +0400
commitbc3b90760364cc491879af6a6ee782c491dd1be9 (patch)
tree74162db11fc766ef65047ada9813d66df1413e0c
parentc62755c6e88dea725316bd01459e8edb04954b53 (diff)
make sure to obey .gnuplot file if it exists
-rw-r--r--gnuplot.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/gnuplot.lua b/gnuplot.lua
index c269f8e..73c603e 100644
--- a/gnuplot.lua
+++ b/gnuplot.lua
@@ -135,8 +135,10 @@ local function getfigure(n)
_gptable[n].pipe = torch.PipeFile(getexec() .. ' -persist > /dev/null 2>&1 ','w')
end
_gptable.current = n
- _gptable[n].pipe:writeString(torchstyle .. '\n\n\n')
- _gptable[n].pipe:synchronize()
+ if not paths.filep(paths.concat(os.getenv('HOME'),'.gnuplot')) then
+ _gptable[n].pipe:writeString(torchstyle .. '\n\n\n')
+ _gptable[n].pipe:synchronize()
+ end
return _gptable[n]
end