Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #1133
| From | sfeam <sfeam@users.sourceforge.net> |
|---|---|
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Re: display the fit function and/or fit parameters in the chart area? |
| Followup-To | comp.graphics.apps.gnuplot |
| Date | 2012-05-20 21:42 -0700 |
| Organization | gnuplot development team |
| Message-ID | <jpch3q$ase$1@dont-email.me> (permalink) |
| References | <29384440.3636.1335790067323.JavaMail.geo-discussion-forums@vbbfk16> <18741148.475.1336706854974.JavaMail.geo-discussion-forums@vbq19> <10fad3e4-1d89-4c17-b03a-6dac787ef47a@pr7g2000pbb.googlegroups.com> |
Followups directed to: comp.graphics.apps.gnuplot
Nicholas Musolino wrote:
> On May 10, 11:27 pm, TonyG <tgo...@gmail.com> wrote:
>> On Monday, April 30, 2012 8:47:47 AM UTC-4, TonyG wrote:
>> > How to automate the process, instead of having to insert copied
>> > strings?
>>
>> Is it possible...? So far, no peep from anybody...
>
> See second item on this page.
> http://t16web.lanl.gov/Kawano/gnuplot/misc4-e.html
>
> Copied and pasted from that site:
>
> gnuplot> f(x)=a*x*x+b*x+c
> gnuplot> fit f(x) 'test.dat' using 1:2:3 via a,b,c
> gnuplot> set label 1 "Y=AX^2+BX+C" at 11,1225
> gnuplot> set label 2 "A = %g", a at 12,1200
> gnuplot> set label 3 "B = %g", b at 12,1180
> gnuplot> set label 4 "C = %g", c at 12,1160
> gnuplot> plot f(x),'test.dat' using 1:2:3 with yerr
That syntax is very out of date. I'm not sure it will work any more.
Use string variables and string functions instead.
That is, instead of
set label 2 "A = %g", a at 12,1200
you want
set label 2 sprintf("A = %4.2f",a) at 12, 1200
and so on.
Ethan
Back to comp.graphics.apps.gnuplot | Previous | Next — Previous in thread | Next in thread | Find similar
display the fit function and/or fit parameters in the chart area? TonyG <tgozdz@gmail.com> - 2012-04-30 05:47 -0700
Re: display the fit function and/or fit parameters in the chart area? TonyG <tgozdz@gmail.com> - 2012-05-10 20:27 -0700
Re: display the fit function and/or fit parameters in the chart area? Nicholas Musolino <n.musolino@gmail.com> - 2012-05-20 18:38 -0700
Re: display the fit function and/or fit parameters in the chart area? sfeam <sfeam@users.sourceforge.net> - 2012-05-20 21:42 -0700
Re: display the fit function and/or fit parameters in the chart area? TonyG <tgozdz@gmail.com> - 2012-05-31 14:50 -0700
csiph-web