gnuplot - Fitting data points to a line on a semi-log plot -
i have semi-log plot (log on x-axis) includes error bars. i'm trying fit line through data points. far i've tried plotting data , separate line , adjusting intercepts of line until (sorta) within data. felt primitive. i'm trying based off of previous posts
y0=-12 m=1 f(x) = y0 + m*log(x) fit f(x) "av_bngc6522_hband_chi1p5_ir_10" using 29:35:33:39 w xyerrorbars via m,y0
gnuplot saying "need via , either parameter list or file". don't know means , i'm sure syntax off. need help.
with xyerrorbars
plotting style , can't used fitting. , can have 1 error value, assumed standard deviation of z
value, see help fit
. independent variable x
can't have associated error value.
you script must this: (adapt column numbers)
y0=-12 m=1 f(x) = y0 + m*log(x) fit f(x) "av_bngc6522_hband_chi1p5_ir_10" using 29:35:39 via m,y0
Comments
Post a Comment