f(x)=a*x+b a=5 b=1 fit f(x) "adatok.txt" using 1:2:3 via a,b plot f(x) title 'Illesztett', 'adatok.txt' using 1:2:3 title "Adatok" w e