set xlabel 'log(n)' set ylabel 'log(errore)' f(x)=m*x+q fit f(x) '3dim.dat' u (log($1)):(log($4)) via m,q p '3dim.dat' u 5:6 w lp, f(x) lw 3