set terminal epslatex color colortext set datafile separator "," set output "fits/logK_vs_x.eps" set xlabel '$x/\unit{\micro m}$' set ylabel '$\log(K)$' #set xtics 500000 set pointsize 2 g(x) = a*x + b fit g(x) "fits/transmission_vs_x.CSV" using 1:4 via a,b plot "fits/transmission_vs_x.CSV" using 1:4 title '$\log(K)$', g(x)