1# gnuplot script for comparison to theoretical word error rate for
2# bounded distance decoding
3
4# run: gnuplot fig_bodide.gnuplot
5# then: pdflatex fig_bodide.tex
6
7set term epslatex standalone size 6in,2*6/3in
8set output "fig_bodide.tex"
9set xlabel "$E_b/N_0$ (dB)"
10set ylabel "Word Error Rate"
11set style func linespoints
12set key off
13set tics in
14set mxtics 2
15set mytics 10
16set grid
17set logscale y
18plot [3:9] [1e-4:1] \
19   "bmdata.dat" using ($1+29.1):(1-$2) with linespoints lt 2 lw 2 pt 2, \
20   "ftdata-100000.dat" using ($1+29.1):(1-$3) with linespoints lt 1 lw 2 pt 7, \
21   "bmtheory25.dat" using ($1-0.6):3 with linespoints lt 1 pt 5, \
22   "kvasd-15.dat" using ($1+29.1):(1-$3) with linespoints lt 4 pt 6, \
23   "bodide.lab" with labels
24
25