Skip to content

Commit

Permalink
create latex plot
Browse files Browse the repository at this point in the history
  • Loading branch information
Expander authored and Expander committed May 15, 2014
1 parent 94cd635 commit c88275d
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions higgs-study/plot_tc.gnuplot
@@ -1,13 +1,19 @@
set terminal x11
set terminal epslatex standalone size 15cm,10cm header "\\usepackage{amsmath}"

if (!exists("filename")) filename='higgs-study/data/tc/scan_MSSM_tc.dat'

outputfilename=system("echo '".filename."' | sed 's/\\./_/g' ")
outputtexfilename=outputfilename.".tex"

set output outputtexfilename

set title ""
set xlabel '$t_c$'
set xtics format "$%g$"
# set xlabel '$\tan\beta$'
set ylabel '$m_h^{\text{pole}}$'
set ylabel '$m_h^{\text{pole}}$ / GeV'

set key box bottom right

if (!exists("filename")) filename='higgs-study/data/tc/scan_MSSM_tc.dat'
set key box bottom right width 1

# plot "<awk '{ if ($2 == 0 && $4 == 0) print $0 }' ".filename using 1:3 title '$t_c = 0$' , \
# "<awk '{ if ($2 == 0.01 && $4 == 0) print $0 }' ".filename using 1:3 title '$t_c = 0.01$', \
Expand All @@ -22,3 +28,8 @@ plot "<awk '{ if ($1 == 5 && $4 == 0) print $0 }' ".filename using 2:3 title '$
"<awk '{ if ($1 == 20 && $4 == 0) print $0 }' ".filename using 2:3 title '$\tan\beta = 20$', \
"<awk '{ if ($1 == 25 && $4 == 0) print $0 }' ".filename using 2:3 title '$\tan\beta = 25$', \
"<awk '{ if ($1 == 30 && $4 == 0) print $0 }' ".filename using 2:3 title '$\tan\beta = 30$'

set output

system "epstopdf ".outputfilename."-inc.eps"
system "pdflatex ".outputtexfilename

0 comments on commit c88275d

Please sign in to comment.