Syntax:
set fit {logfile {"<filename>"}} {{no}errorvariables} unset fit show fit
The 5#5filename6#6 argument must be enclosed in single or double quotes.
If no filename is given or unset fit is used the log file is reset to its default value "fit.log" or the value of the environmental variable FIT_LOG.
Users of DOS-like platforms should note that the 3#3 character has special significance in double-quoted strings, so single-quotes should be used for filenames in different directories, or you have to write 3#33#3 for each 3#3. Or you can just use forward slashes, even though this is DOS.
If the given logfile name ends with a / or 3#3, it is interpreted to be a directory name, and the actual filename will be "fit.log" in that directory.
If the errorvariables option is turned on, the error of each fitted parameter computed by fit will be copied to a user-defined variable whose name is formed by appending "_err" to the name of the parameter itself. This is useful mainly to put the parameter and its error onto a plot of the data and the fitted function, for reference, as in:
set fit errorvariables fit f(x) 'datafile' using 1:2 via a, b print "error of a is:", a_err set label 'a=%6.2f', a, '+/- %6.2f', a_err plot 'datafile' using 1:2, f(x)