#!/usr/bin/gnuplot set xlabel "Date" set ylabel "Count" set autoscale p(x) = m1 * (x / 1399003199) + b1 fit p(x) 'test.dat' using 1:2 via m1, b1 plot 'test.dat' using 1:2, p(x)