reset set term postscript enhanced landscape color font "Helvetica,24pt" dashlength 2.0 reset set output "QBER-pump" set title "QBER-v-loss" set xrange [0:20] set yrange [0:0.2] set ylabel "QBER" set xlabel "Extra Loss (dB)" plot 'qber-v-loss3.dat' using (-10*log10(($7-590940)/(5462636-590940))):5 w p pt 7 ps 0.8 lc rgb "red" title "QBER", 'qber-v-loss3.dat' using (-10*log10(($7-590940)/(5462636-590940))):($4/2) w p pt 7 ps 0.8 lc rgb "black" title "0.5x accidentals/coincidence ratio" reset set output "rate-loss" set title "Final Key Rate vs Loss" set xrange [0:20] set yrange [0:200] set ylabel "Final Key Rate" set xlabel "Extra Loss (dB, In addition to an existing 10-km fiber)" #plot 'rate-v-loss1.dat' using (-10*log10(($6-590940)/(5462636-590940))):($7/10) w p pt 7 ps 0.5 lc rgb "red" title "Final key rate" plot 'rate-v-loss1.dat' using (-10*log10(($6-1477350)/(13740590-1477350))):($7/10) w p pt 7 ps 0.8 lc rgb "red" title "Final key rate" #set output "detector-check-2.eps" #plot 'h-rev.dat' using 1:2 w l title 'homemade-H' ,\ # 'v-rev.dat' using 1:2 w l title 'homemade-V' ,\ # 'p-rev.dat' using 1:2 w l title 'homemade-plus' ,\ # 'm-rev.dat' using 1:2 w l title 'homemade-minus',\ # 'p-dc-rev.dat' using 1:2 w l title 'accidentals from dark counts'