diff options
author | Julien Cornebise <julien.cornebise@gmail.com> | 2013-10-12 20:46:10 +0400 |
---|---|---|
committer | Julien Cornebise <julien.cornebise@gmail.com> | 2013-10-17 20:15:21 +0400 |
commit | b43a4e9f59aeffd45471367cc1a72c6281a118ae (patch) | |
tree | 73a1d56b645fec2c16eb6d0f6f4087447c08e5d2 | |
parent | 923de0c04d4dfd03051f0978594de0214519061e (diff) |
Allow pngcairo if available
This provides nicer-looking png
-rw-r--r-- | gnuplot.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gnuplot.lua b/gnuplot.lua index c69be37..4f246dc 100644 --- a/gnuplot.lua +++ b/gnuplot.lua @@ -691,7 +691,8 @@ function gnuplot.figprint(fname) if suffix == 'eps' then term = 'postscript eps enhanced color' elseif suffix == 'png' then - term = 'png size "1024,768"' + term = gnuplothasterm('pngcairo') and 'pngcairo' or 'png' + term = term .. ' size "1024,768"' elseif suffix == 'pdf' and haspdf then if not haspdf then error('your installation of gnuplot does not have pdf support enabled') |