|
From: Alice5785 <Al...@st...> - 2009-04-26 17:13:12
|
oh very nice, thanks again :) those things I write into a tex-file, so that I
don't have to search every time I need it :)
Thomas Sefzick wrote:
>
> you may save some time (used for positioning the contents of one
> line) by writing the surrounding text into the sprintf command:
>
> set label 1 sprintf("F = [ %.2f +/- %.2f (%.2f%%) ]
> C/mol",a,a_err,a_err/a*100) at graph 0.38,0.35
>
> set label 6 sprintf("N_A = %.5e particles/mol",a/1.602176487e-19) at graph
> 0.38,0.22
>
> this has the advantage of being font size independant.
>
>
> Alice5785 wrote:
>>
>> Thank you very much!
>> I have now what I wanted, looks a little difficult but it wirks :-)
>>
>> for those who want to know how (but you will need a file.dat file with
>> the columns "volumina in ml", "time in sec", "meausred height in cm"):
>>
>> f(x)=a*x+b
>> set fit errorvariables
>> fit f(x) "file.dat" using
>> ($1*(0.99458e5+1.08e3*9.81*$3*1e-2-0.94*3.08e3)*273.15/(1.01325e5*297.66)):(4.4828e3*$2)
>> via a,b
>>
>> set label 1 "Faraday-constant from slope of the fit" at graph 0.38,0.4
>> set label 2 "F = [ " at graph 0.38,0.35
>> set label 3 sprintf("%.2f +/- %.2f (%.2f%%)",a,a_err,a_err/a*100) at
>> graph 0.44,0.35
>> set label 4 "] C/mol" at graph 0.84,0.35
>> set label 5 "from that: Avogadro-constant:" at graph 0.38,0.28
>> set label 6 "N_A = " at graph 0.38,0.22
>> set label 7 sprintf("%.5e",a/1.602176487e-19) at graph 0.47,0.22
>> set label 8 "particles/mol" at graph 0.65,0.22
>>
>>
>> important: without the "set fit errorvariables" you won't have the
>> "_err"-Variables!
>>
>
>
--
View this message in context: http://www.nabble.com/Label-value-from-file-and-caption-under-the-graph-tp5680184p23244262.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|