# type the following command in gnuplot, in the directory that contains the .gnu and .txt datafile, as below: # load "airy.gnu" # use this setting for .eps, common choice for use in LaTeX # set terminal postscript eps color enhanced font "Helvetica,16pt" size 8.6cm,6cm # use this for .png, everyday use easier to open set terminal pngcairo enhanced font "Helvetica,8pt" size 1920,1080 # common formatting settings set format x "%2.0f" set format y "%2.1f" set tics scale 2 set tics nomirror set xrange [-400:400] set xtics 100 set mxtics 2 set yrange [-0.15:1.05] set ytics 0.2 set mytics 2 set border linewidth 2 set xlabel "Angle from On-Axis (milli-arcseconds)" set ylabel "Amplitude" # PSF of star 6mas, planet 10% obstruction, combined, using 1-m aperture diameter set output 'airy_PSF.png' set arrow 1 from 0,-0.15 to 0,1.0 lw 2 lc rgb 'black' dt 3 nohead set arrow 2 from -3,-0.15 to -3,-0.1 lw 2 lc rgb 'blue' dt 2 nohead plot 'airy.txt' using 1:2 w l lc rgb "black" lw 2 title 'Star of 6 mas angular diameter PSF', 'airy.txt' using 1:(-1*$3) w l lc rgb "blue" lw 2 title 'Exoplanet of 10% obstruction PSF', 'airy.txt' using 1:4 w l lc rgb "red" lw 2 title 'Output 1-m aperture, 3 mas off-axis PSF' unset arrow 1 unset arrow 2 # 50% of PSF combined, 50% inversion, dark port output, compare areas under the curve for signal to noise ratio gain set output 'airy_inversion.png' set multiplot set yrange [-0.05:0.5] set ytics 0.1 plot 'airy.txt' using 1:(0.5*$4) w l lc rgb "black" lw 2 title '50% input PSF', 'airy.txt' using 1:(0.5*$5) w l lc rgb "blue" lw 2 dt 2 title '50% inversion PSF', 'airy.txt' using 1:6 w l lc rgb "red" lw 2 title 'Dark port output after interference' set origin 0.12, 0.5 set size 0.3, 0.35 set xr [-20:20] set yr [0.42:0.455] set xtics 10 set ytics 0.01 set ticscale 1 set format y "%2.2f" unset xlabel unset ylabel set arrow 3 from 39.5,0.46 to 39.5,0.468 lw 2 lc rgb 'black' dt 2 nohead set arrow 4 from 39.5,0.468 to 48,0.468 lw 2 lc rgb 'black' dt 2 nohead set arrow 5 from 48,0.468 to 48,0.46 lw 2 lc rgb 'black' dt 2 nohead set arrow 6 from 48,0.46 to 39.5,0.46 lw 2 lc rgb 'black' dt 2 nohead set arrow 7 from 39.5,0.468 to -20,0.455 lw 2 lc rgb 'black' dt 2 nohead set arrow 8 from 48,0.46 to 20,0.42 lw 2 lc rgb 'black' dt 2 nohead plot 'airy.txt' using 1:(0.5*$4) w l lc rgb "black" lw 1 notitle, 'airy.txt' using 1:(0.5*$5) w l lc rgb "blue" lw 1 dt 2 notitle set origin 0.65, 0.35 set size 0.3, 0.35 set xr [-100:100] set yr [0:0.004] set xtics 50 set ytics 0.002 set ticscale 1 set format y "%2.3f" set arrow 9 from -100,0.004 to -400,-0.0035 lw 2 lc rgb 'black' dt 2 nohead set arrow 10 from -400,-0.0035 to -400,-0.0040 lw 2 lc rgb 'black' dt 2 nohead set arrow 11 from -400,-0.0040 to -180,-0.0040 lw 2 lc rgb 'black' dt 2 nohead set arrow 12 from -180,-0.0040 to -180,-0.0035 lw 2 lc rgb 'black' dt 2 nohead set arrow 13 from -180,-0.0035 to -400,-0.0035 lw 2 lc rgb 'black' dt 2 nohead set arrow 14 from -180,-0.0040 to 100,0 lw 2 lc rgb 'black' dt 2 nohead plot 'airy.txt' using 1:6 w l lc rgb "red" lw 1 notitle unset multiplot reset