reset set encoding iso_8859_1 set xrange [log(120):log(240)] set yrange [1:3] set title "Spannungsabhängigkeit des Drucks" set xlabel "[ln(U)]" set ylabel "[ln(v)]" set grid xtics ytics set key bottom right rho = 1.2 f(x) = m*x + c fit f(x) 'DatenSpannungsabhaengigkeit.txt' us (log($1)):(log(sqrt(2*($2)*9.81/rho))) via m,c plot 'DatenSpannungsabhaengigkeit.txt' us (log($1)):(log(sqrt(2*($2)*9.81/rho))) title 'Messwerte' lt 1, \ f(x) title 'Ausgleichsgerade' lt 3 set output "spannungsabhaengigkeit.eps" set term postscript enhanced eps color; replot