reset set xrange [4.86:4.93] set title "Eichung der Hallsonde" set xlabel "[Hallspannung U_{H} in V]" set ylabel "[Magnetische Feldst{\344}rke B in T]" set grid xtics ytics f(x) = m * x + a fit f(x) 'DatenEich.txt' via m,a plot 'DatenEich.txt' title "Messwerte" lt 1, f(x) title "Eichgerade" lt 1 set output "Eich.eps" set term postscript enhanced eps color; replot