# set terminal postscript eps enhanced color size 8.6cm, 6cm dl 3 font "Helvetica, 16pt" # set terminal x11 set terminal postscript eps enhanced color dl 3 font "Helvetica, 22pt" set output 'photon_g2s.eps' set origin 0, 0 set size 1, 1 set style line 1 lc rgb '#A10000' lw 1.5 pt 7 ps 0.5 # red set style line 2 lc rgb '#0061DE' lw 1.5 pt 6 ps 0.5 # blue set style line 3 lc rgb '#004B4B' lw 1 pt 7 ps 0.5 # red # set termoption dashlength .9 unset key unset bars set ytics nomirror # remove top and right axis tics set xtics nomirror set border 1+2 back # remove borders top and aright set xrange [-20:100] set mxtics 2 set xtics -20, 20, 100 set lmargin screen 0.15 # set multiplot layout 2,1 # g(2) plots # set origin 0, 0.5 # set size 1, 0.5 set yrange [-0.0:0.15] set ytics 0, 0.05, 0.15 set mytics 2 set ylabel 'Detection time probability density (ns^{-1})' offset 2,0 set xlabel 'Detection time difference {/Symbol D}t ({n}s)' plot 'data/data_photon_prob_envelope_after_disp.csv' u 1:2:3 with yerrorbars ls 1, \ 'data/data_photon_prob_envelope_before_disp.csv' u 1:2:3 with yerrorbars ls 2, \ 'data/theory_photon_shapes.csv' u 1:3 with lines ls 1, \ 'data/theory_photon_shapes.csv' u 1:2 with lines ls 2 set style fill transparent solid 0.35 noborder set style arrow 4 head filled size screen 0.03,15 ls 2 set arrow from 51, 0.045 to 45, 0.015 arrowstyle 4 lc rgb '#A10000' set arrow from 15, 0.08 to 9, 0.05 arrowstyle 4 lc rgb '#0061DE' set label 1 "after dispersion cavity" at 51, 0.05 #font "{,}" set label 2 "before dispersion cavity" at 15, 0.085 #font "{,}" # photon phase plot # set origin 0, 0.0 # set size 1, 0.5 # set yrange [-3.14:0] # set ytics -3.14, 3.14, 3.14 # set ytics add ("+{/Symbol p}" 3.14) # set ytics add ("-{/Symbol p}" -3.14) # set ylabel 'Phase (rad)' offset 2,0 set xlabel 'Detection time difference {/Symbol D}t ({n}s)' # plot 'data/EOM_pulse.dat' u 1:2 ls 3, \ # 'data/theory_phase.dat' u 1:(-1*$2) with lines ls 1 # 0 lw 0.8 lc 'black' # EOM pulse plot set terminal pdf enhanced color size 8.6cm, 6cm dl 3 font "Helvetica, 12pt" set output 'photon_shape.pdf' replot # unset multiplot # save to file # set terminal postscript eps enhanced color size 8.6cm, 6cm dl 3 font "Helvetica, 16pt" # set output 'photon_g2s.eps' # replot