set terminal postscript portrait enhanced color solid 10 set output set xlabel "Frequency [MHz]" set key bottom left set grid mxtics mytics xtics ytics set logscale x set autoscale x set mxtics 5 set multiplot set size 0.5,0.5 set origin 0,0.5 set ytics 10 set mytics 5 set title "Stage 1 gain" set ylabel "Gain [dB]" plot "sim/stage1.data" using ($1/1e6):2 title "Worst beta" with lines, \ "sim/stage1.data" using ($1/1e6):3 title "Best beta" with lines set origin 0.5, 0.5 set xrange [0.25:64] set xtics 4 set nomxtics set yrange [11:19] set ytics 1 set mytics 4 replot set origin 0,0 set title "Phase" set yrange [-180:180] set ylabel "Phase [deg]" set ytics 30 set mytics 3 plot "sim/stage1.data" using ($1/1e6):4 title "Worst beta" with lines, \ "sim/stage1.data" using ($1/1e6):5 title "Best beta" with lines set origin 0.5,0 set title "Delay" set xrange [5:10] unset logscale x set ylabel "Delay/3 stages [ns] set yrange [0:20] set xtics 1 set mxtics 2 set ytics 1 set mytics 2 plot "sim/stage1.data" using ($1/1e6):(-3e9*$4/360/$1) title "Worst beta" with lines, \ "sim/stage1.data" using ($1/1e6):(-3e9*$5/360/$1) title "Best beta" with lines