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:
authorJulien Cornebise <julien.cornebise@gmail.com>2013-10-12 20:59:00 +0400
committerJulien Cornebise <julien.cornebise@gmail.com>2013-10-17 20:15:21 +0400
commitda096d2eccb1408604341949e3bb1890043749fa (patch)
tree11c96fb4539dfc3e998f90e266359c2ef5dc9792
parent8e2bb3bc8412f8faca5e5f307a8315277b9f5eb7 (diff)
Uniformize coding style between my two modifications
-rw-r--r--gnuplot.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/gnuplot.lua b/gnuplot.lua
index e7d2116..d33ebbe 100644
--- a/gnuplot.lua
+++ b/gnuplot.lua
@@ -665,10 +665,7 @@ function gnuplot.svgfigure(fname,n)
end
function gnuplot.pngfigure(fname,n)
- local term = 'png'
- if gnuplothasterm('pngcairo') then
- term = 'pngcairo'
- end
+ local term = gnuplothasterm('pngcairo') and 'pngcairo' or 'png'
filefigure(fname,term,n)
return _gptable.current
end