reset set encoding iso_8859_15 set terminal pslatex color rotate set grid set key top left set ylabel "$\\sin(\\delta) [-]$" set xlabel "$k/d [m^{-1}]$" f(x) = m*x + c fit f(x) 'plot_lambda.dat' u 2:1 via m, c set output 'plot_lambda.tex' plot 'plot_lambda.dat' u 2:1 lw 2 lt 1 title "Messwerte", f(x) title "lineare Regression" lw 2 lt 2