Fix generation of pdf graphs
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 11 Dec 2010 17:21:21 +0000 (18:21 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 11 Dec 2010 17:21:21 +0000 (18:21 +0100)
gw-tests/lib.sh

index 7f0d9fd..f6f4439 100644 (file)
@@ -53,8 +53,8 @@ _plot() {
        echo "set terminal x11 enhanced; $(< plot.gp)" | gnuplot -persist
     fi
     I=''
-    echo 'set terminal pdfcairo color enhanced;' \
-       "$(< plot.gp)" | gnuplot > ${testname}$I.pdf
+    echo "set terminal pdfcairo solid color enhanced; set output \"${testname}$I.pdf\";" \
+       "$(< plot.gp)" | gnuplot
     echo 'set terminal pngcairo color enhanced size 750,525 font ",10" ;' \
        "$(< plot.gp)" | gnuplot > ${testname}$I.png
     mkdir -p thumb