Wednesday 25 March 2009

Printing variables from gnuplot to a file

To output variables such as fitting parameters from gnuplot use.
set fit errorvariables # creates a_err type variables for fitting errors
set print "tmp.dat"
print a,a_err,b,b_err

1 comment:

  1. Thanks . this was useful to me. In addition, if one wants formatted output, one can use sprintf command. For example, one can look into the Gnuplot-4.6-0 manual.

    ReplyDelete