From: Michal Sojka Date: Sat, 11 Dec 2010 13:52:59 +0000 (+0100) Subject: Plot graphs with cairo - it is faster and nicer X-Git-Tag: fix-allnoconfig~229 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/can-benchmark.git/commitdiff_plain/0067509575642daf871e95388be79ae95ad33d70?ds=sidebyside Plot graphs with cairo - it is faster and nicer --- 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 }