set output '| ps2pdf -dEPSCrop - data/freshness.pdf' set terminal postscript color eps size 2.8,1.5 enhanced "Times-Roman" 12 set pointsize 1.2 set rmargin 3 set lmargin 10 #set nokey set xlabel "Staleness limit in seconds" font "Times-Roman,16" set ylabel "Relative throughput" font "Times-Roman,16" set yrange [0:8] set ytic format "%.0fx" dbpeak = `awk '{print $6}' < data/mediumdb-stock | sort -nr | head -n1` dbpeakbig = `awk '{print $6}' < data/bigdb-stock | sort -nr | head -n1` plot [x = 0:*] \ "data/mediumdb-txcache-freshness-peaks" using 1:($2/dbpeak) \ title "TxCache (in-memory DB, 512MB cache)" with linespoints lt 1 pt 7 lc 3 lw 3, \ "data/bigdb-txcache-freshness-peaks" using 1:($2/dbpeakbig) \ title "TxCache (larger DB, 9GB cache) " with linespoints lt 1 pt 5 lc rgb "#006400" lw 3, \ 1 title "No caching (baseline)" \ with line lt 2 lc 1 lw 6