#!/usr/bin/gnuplot f0 = 'ramsey/tmp' f1 = 'ramsey_bright/tmp' f2 = 'echo/tmp' f3 = 'echo_dark/tmp' set terminal postscript eps color enhanced solid font "Helvetica,26" size 16cm,10cm #set term pdf #set term pngcairo set output "summary.eps" a0=0.54 b0 = 0.2 tau = 20 decay(x) = a0 - exp(-x/tau)*b0 #fit decay(x) infile1 u 1:5:6 via b0,tau,a0 #set title "MW-Ramsey, lin pol trap" set xlabel "time (us)" set ylabel 'probability bright state (%)' set key right bottom set pointsize 1.0 set xrange [0:552] set yrange [0:100] set ytics 25 set xtics 100 #set label 1 sprintf("Lorentz+Dispersion fit:") at graph 0.02,0.45 plot f0 u 1:(100*$5):(100*$6) w yerr ps 0.8 pt 7 lc 1 lw 2 not,f1 u 1:(100*$5):(100*$6) w yerr ps 0.8 pt 7 lc 2 lw 2 not, f2 u 1:(100*$5):(100*$6) w yerr ps 0.8 pt 7 lc 3 lw 2 not, f3 u 1:(100*$5):(100*$6) w yerr ps 0.8 pt 7 lc 4 lw 2 not unset output #pause -1