<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">Hi all,</span><div style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">
<br></div><div style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">I'm writing script in python, which fitting exponencial curve to data ( f(x) = a*exp(x*b).</div><div style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">
To this problem, I use gnuplot in my script. Gnuplot display parameters ( a +/- delta a; b +/- delta b)</div><div style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">How Can I use/save this parameters in python variables in next steps of my script, </div>
<div style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); "><br></div><div style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); "><div>def main():</div>
<div> ...</div><div> </div><div> </div><div> plot = Gnuplot.Gnuplot()</div><div> </div><div> plot('f1(x) = a1*exp(b1*x)')</div><div> plot('a1 = 300; b1 = 0.005;')</div><div> plot('fit f1(x) "data.txt" using 1:2 via a1, b1')</div>
<div> </div><div> print "first parameter", a1</div><div> print "second parameter", b1 # is it feasible ? Or there is another way to see the results ( parameter a1 and b1) of gnuplot by python<font size="5"> </font></div>
<div> ...</div><div> #plot('set terminal postscript')</div><div> #plot('set output "<a href="http://output.ps/" target="_blank" style="color: rgb(42, 93, 176); ">output.p</a>s"')</div><div>
</div></div><div style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); "><br></div><div style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">
regards and please help,</div><div style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">Cristopher</div>