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:
-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