set terminal png set output "fit2.png" set size 0.8,0.8 set xlabel "x" set ylabel "y" set key box set title "Least Square Fit" plot "points.dat" with errorbars title "Datapoints", \ "fit2.dat" title "Fit" with lines #set terminal x11 #replot #!echo Press enter to close plot #pause -1