With version 5 fitting time data doesn't work. Consider the data file fittest.dat with the content:
2014-06-10 1
2014-06-11 2
2014-06-12 3.1
and the script
set timefmt '%Y-%m-%d'
set xdata time
x0=strptime('%Y-%m-%d', '2014-06-10')
f(x) = a*(x-x0) + b
fit f(x) 'fittest.dat' using 1:2 via a,b
This works fine with 4.6.4, but gives an error "Need full using spec for time data" with current CVS version.
Thank you,
Christoph
That messages is emitted by a fragment of code that makes very little sense. Perhaps the idea was that the expected full command is
I suspect the test, and the message, can be deleted altogether.
Thanks, that fixes the problem for me.