set term qt enhanced set key top left A=1; B=1; fit A*x+B 'first_test.txt' via A,B plot 'first_test.txt' w p, A*x+B w l title 'fit' pause mouse close