From: Thomas S. <t.s...@fz...> - 2007-08-29 07:30:19
|
> I changed the key line to: > set key left Left reverse at graph 0.6, graph 1.05-c_p*0.1 > but reverse seems to be ignored. Is that because of multiplot? no, it's already reversed because of the line set key right top Left reverse in 'dosis_single_fit_main.gpl' the only thing you can do is an 'unreverse' or delete the 'set key' line in 'dosis_single_fit_main.gpl'. another trick which makes your script system independent: instead of calling 'sed' in fit log(a)-b*x '< sed "s/ 0/ ?0/g" dosis.dat' using 1:(log(column(c_l))) ... plot '< sed "s/ 0/ ?0/g" dosis.dat' using 1:c_l ... you can get the same effect using the ternary operator in combination with gnuplot's behaviour to ignore undefined values: fit log(a)-b*x 'dosis.dat' using 1:( column(c_l)>0 ? log(column(c_l)) : 0/0 ) ... plot 'dosis.dat' using 1:( column(c_l)>0 ? column(c_l) : 0/0 ) ... lynx.abraxas wrote: > > On 28/08/07 05:44:41, Thomas Sefzick wrote: >> >> > The only thing left now is how to get the multiplot have nice axes; >> with >> reread they get >> > overpainted. >> >> modify 'dosis_single_fit.gpl': >> >> c_p= c_p + 1 >> c_l= c_p + 2 >> set yrange [-27.63:-16.22] >> fit log(a)-b*x '< sed "s/ 0/ ?0/g" dosis.dat' using 1:(log(column(c_l))) >> via a, b >> set yrange [1e-12:9e-8] >> plot '< sed "s/ 0/ ?0/g" dosis.dat' using 1:c_l t "C_2: $c_p" ls c_p with >> lp, a * exp (-x*b) lt c_p >> if (c_p < 4) reread >> >> the axes get still overpainted but with exactly the same. > > Ah, great. Thank You very much for the tricks. With the aliasing of the > fonts > it's still visible it got over paintede but the graph is fine. > I changed the key line to: set key left Left reverse at graph 0.6, > graph > 1.05-c_p*0.1 > but reverse seems to be ignored. Is that because of multiplot? > > Thanks again, I'm now more confident with gnuplot. > Lynx > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Gnuplot-info mailing list > Gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > -- View this message in context: http://www.nabble.com/How-to-fit-a-line-in-log-plot-or-how-to-help-converge-exp-better-tf4332385.html#a12382070 Sent from the Gnuplot - User mailing list archive at Nabble.com. |