#set term x11 persist set term cairolatex pdf size 6in,3in set output 'tracy_widom.tex' set linetype 1 lc rgb '#E41A1C' # red set linetype 2 lc rgb '#377EB8' # blue set linetype 3 lc rgb '#4DAF4A' # green set key samplen 2 set grid set xlabel "x" set ylabel "p(x)" set lmargin at screen 0.15 set rmargin at screen 0.85 plot 'tracy_widom.txt' using 1:2 with lines title '$\beta=1$', \ 'tracy_widom.txt' using 1:3 with lines title '$\beta=2$', \ 'tracy_widom.txt' using 1:4 with lines title '$\beta=4$' set term cairolatex pdf size 6in,3in set output 'tracy_widom_compare.tex' set key samplen 2 set grid set xlabel "x" set ylabel "p(x)" set lmargin at screen 0.15 set rmargin at screen 0.85 plot 'tracy_widom_normal.txt' using 1:2 with lines title 'TW\textsubscript{1}', \ 'tracy_widom_normal.txt' using 1:3 with lines title 'Normal' dt 2