set terminal epslatex color colortext set datafile separator "," set output "fits/transmission_vs_x.eps" set xlabel '$x/\unit{\micro m}$' set ylabel '$T_{norm}$' #set xtics 500000 set pointsize 2 #x0 = 0 #K0 = 1.6 #g = 0.13 #f(x) = ((1-K0*exp(-(x-x0)/g))/(1+K0*exp(-(x-x0)/g)))**2 a = 1.586 # (-8.065e+06, 8.065e+06) b = -0.006795 # (-8.349e+05, 8.349e+05) c = 0.1642 # (0.1403, 0.188) F(x)=((1-a*exp(-(x-b)/c))/(1+a*exp(-(x-b)/c)))**2 plot "fits/transmission_vs_x.CSV" using 1:2:2:3 with yerrorbars title '$T_{norm}$', F(x) title "Theory"