set terminal postscript eps color enhanced font "Helvetica,16pt" size 8cm,6cm dashlength 2.0 set output "trendsun.eps" # common settings set format y "%2.1f" set tics scale 2 set tics nomirror set ytics 0.1 set yr [1.525:1.875] set format x2 "%2g" S(x)=s s=1.7 set fit errorvariables set xrange [20:70] FIT_LIMIT=1.e-15 FIT_MAXITER=1000 fit S(x) 'g2trend.txt' using 4:5:6 via s set ylabel "g^{(2)}({/Symbol t}=0)" rotate by 90 set x2tics 10 nomirror set x2r [20:70] set x2label "Elevation {/Symbol a} [Degrees]" set xtics ("5pm" 28.68, "4pm" 42.18, "3pm" 54.88, "2pm" 65.39) nomirror set xl "Time on 28th May 2015" set samples 1000 plot 'g2trend.txt' using 4:5:6 w yerrorbars lc 1 ps 0.8 pt 7 notitle,\ S(x) w l lw 3 lt 2 lc -1 notitle