<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <!--Converted with LaTeX2HTML 2008 (1.71) original version by: Nikos Drakos, CBLU, University of Leeds * revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan * with significant contributions from: Jens Lippmann, Marek Rouchal, Martin Wilck and others --> <HTML> <HEAD> <TITLE>Fit</TITLE> <META NAME="description" CONTENT="Fit"> <META NAME="keywords" CONTENT="gnuplot"> <META NAME="resource-type" CONTENT="document"> <META NAME="distribution" CONTENT="global"> <META NAME="Generator" CONTENT="LaTeX2HTML v2008"> <META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"> <LINK REL="STYLESHEET" HREF="gnuplot.css"> <LINK REL="next" HREF="node205.html"> <LINK REL="previous" HREF="node203.html"> <LINK REL="up" HREF="node175.html"> <LINK REL="next" HREF="node205.html"> </HEAD> <BODY > <!--Navigation Panel--> <A NAME="tex2html4153" HREF="node205.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html4147" HREF="node175.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html4141" HREF="node203.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html4149" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A NAME="tex2html4151" HREF="node467.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> <BR> <B> Next:</B> <A NAME="tex2html4154" HREF="node205.html">Fontpath</A> <B> Up:</B> <A NAME="tex2html4148" HREF="node175.html">Set-show</A> <B> Previous:</B> <A NAME="tex2html4142" HREF="node203.html">Encoding</A> <B> <A NAME="tex2html4150" HREF="node1.html">Contents</A></B> <B> <A NAME="tex2html4152" HREF="node467.html">Index</A></B> <BR> <BR> <!--End of Navigation Panel--> <H2><A NAME="SECTION0402421000000000000000"></A> <A NAME="commands_set_fit"></A><A NAME="commands_show_fit"></A><A NAME="set_fit"></A><A NAME="show_fit"></A> <BR> Fit </H2> The <B>fit</B> setting defines where the <B>fit</B> command writes its output. If this option was built into your version of gnuplot, it also controls whether parameter errors from the fit will be written into variables. <P> Syntax: <BR> <PRE> set fit {logfile {"<filename>"}} {{no}errorvariables} unset fit show fit </PRE> <BR> <P> The 4#4filename5#5 argument must be enclosed in single or double quotes. <P> If no filename is given or <B>unset fit</B> is used the log file is reset to its default value <TT>"</TT>fit.log<TT>"</TT> or the value of the environmental variable <B>FIT_LOG</B>. <P> If the given logfile name ends with a / or 2#2, it is interpreted to be a directory name, and the actual filename will be <TT>"</TT>fit.log<TT>"</TT> in that directory. <P> If the <B>errorvariables</B> option is turned on, the error of each fitted parameter computed by <B>fit</B> will be copied to a user-defined variable whose name is formed by appending <TT>"</TT>_err<TT>"</TT> 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: <P> <BR> <PRE> 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) </PRE> <BR> <HR> <!--Navigation Panel--> <A NAME="tex2html4153" HREF="node205.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html4147" HREF="node175.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html4141" HREF="node203.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html4149" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A NAME="tex2html4151" HREF="node467.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> <BR> <B> Next:</B> <A NAME="tex2html4154" HREF="node205.html">Fontpath</A> <B> Up:</B> <A NAME="tex2html4148" HREF="node175.html">Set-show</A> <B> Previous:</B> <A NAME="tex2html4142" HREF="node203.html">Encoding</A> <B> <A NAME="tex2html4150" HREF="node1.html">Contents</A></B> <B> <A NAME="tex2html4152" HREF="node467.html">Index</A></B> <!--End of Navigation Panel--> <ADDRESS> 2010-08-17 </ADDRESS> </BODY> </HTML>