Re: How to plot multiple fit functions in a single box

rekha sharma <[email protected]>
Newsgroups gmane.comp.graphics.gnuplot.user
Message-ID <CALfvbNL90mBFmOFwbS3YQtZTnsRYc2vtKzYYX3J7mVfbzjtcDQ@mail.gmail.com>
Dear Sir,
I corrected that mistake but still I am getting error which is pointing
towards:
% g +  a_1/T

Attached are test.data and test.gnu file (part of test.gnu is mentioned
below).
f(x,a0,a1) = a0 + a1/x
fit f(x,a01,a11) 'test.data' using 1:2 via a01,a11
fit f(x,a02,a12) 'test.data' using 1:3 via a02,a12
fit f(x,a03,a13) 'test.data' using 1:4 via a03,a13
fit f(x,a04,a14) 'test.data' using 1:5 via a04,a14
fit f(x,a05,a15) 'test.data' using 1:6 via a05,a15
fit f(x,a06,a16) 'test.data' using 1:7 via a06,a16
fit f(x,a07,a17) 'test.data' using 1:8 via a07,a17
fit f(x,a08,a18) 'test.data' using 1:9 via a08,a18
plot \
   'test.data' using 1:2 w points pt 1 t  , \
    f(x,a01,a11) t sprintf("K_{fit} = % g +  a_1/T", a01), \
   '' using 1:3 w points pt 1 t  , \
    f(x,a02,a12) t sprintf("K_{fit} = % g +  a_1/T", a02), \
   '' using 1:4 w points pt 1 t  , \
    f(x,a03,a13) t sprintf("K_{fit} = % g +  a_1/T", a03), \
  '' using 1:5 w points pt 1 t  , \
    f(x,a04,a14) t sprintf("K_{fit} = % g +  a_1/T", a04), \
  '' using 1:6 w points pt 1 t  , \
    f(x,a05,a15) t sprintf("K_{fit} = % g +  a_1/T", a05), \
  '' using 1:7 w points pt 1 t  , \
    f(x,a06,a16) t sprintf("K_{fit} = % g +  a_1/T", a06), \
  '' using 1:8 w points pt 1 t  , \
    f(x,a07,a17) t sprintf("K_{fit} = % g +  a_1/T", a07), \
  '' using 1:9 w points pt 1 t  , \
    f(x,a08,a18) t sprintf("K_{fit} = % g +  a_1/T", a08), \

On Wed, Jul 8, 2020 at 1:26 AM Hans-Bernhard Bröker <[email protected]>
wrote:

> Am 04.07.2020 um 21:57 schrieb rekha sharma:
> > Dear Sir
> > My gnuplot version is
> >   Version 5.2 patchlevel 2    last modified 2017-11-01
>
> That's getting a bit stale, bit it should still be usable.
>
> >
> > With the  test.gnu file as suggested by you
>
> ... I'm afraid you did miss a few important aspects of the proposal...
>
> > this  ^ points to a08) .
>
> Now look at the version you put together and ask yourself: is a08 really
> treated the same as, say, a03, and a18 or is there possibly some
> difference that might explain why the error concerned a08, but not any
> of the other 15 variables?
>


-- 




Best wishes

_______________________________________________
gnuplot-info mailing list
[email protected]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.