set key 8, 150000 K(x)=A*x*x+B fit K(x) 'fen.dat' using 1:3 via A,B plot K(x), 'fen.dat' using 1:3 title 'fen.dat' with lines save var "vars.dat"