From 0067509575642daf871e95388be79ae95ad33d70 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Sat, 11 Dec 2010 14:52:59 +0100 Subject: [PATCH] Plot graphs with cairo - it is faster and nicer --- gw-tests/lib.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/gw-tests/lib.sh b/gw-tests/lib.sh index 63ea760..70f0132 100644 --- a/gw-tests/lib.sh +++ b/gw-tests/lib.sh @@ -53,14 +53,14 @@ _plot() { echo "set terminal x11 enhanced; $(< plot.gp)" | gnuplot -persist fi I='' - echo 'set terminal postscript color eps enhanced size 6cm,4cm lw 1 "Times-Roman" 10;' \ - 'set lmargin 8;' \ - "$(< plot.gp)" | gnuplot > ${testname}$I.eps - echo "set terminal postscript color eps enhanced;" \ - "$(< plot.gp)" | gnuplot | epstopdf --filter > ${testname}$I.pdf + echo 'set terminal pdfcairo color enhanced;' \ + "$(< plot.gp)" | gnuplot > ${testname}$I.pdf + echo 'set terminal pngcairo color enhanced size 750,525 font ",10" ;' \ + "$(< plot.gp)" | gnuplot > ${testname}$I.png mkdir -p thumb - convert -density 30 -gamma 0.5 -quality 90 -type Palette -depth 8 ${testname}$I.pdf thumb/${testname}$I.png - convert -density 150 -gamma 0.7 -quality 90 -type Palette -depth 8 ${testname}$I.pdf ${testname}$I.png + convert -size 150x105 -quality 90 -type Palette -depth 8 ${testname}$I.png thumb/${testname}$I.png +# echo 'set terminal pngcairo color enhanced size 150,105 font ",1";' \ +# "$(< plot.gp)" | gnuplot > thumb/${testname}$I.png } -- 2.39.2