set logscale y #plot 'bruce03.diff' with linesp, 'matrix99.diff' with linesp f(x) = exp(a*x + b) fit f(x) 'matrix99.diff' using :1 via a, b plot 'matrix99.diff', f(x) with linesp