My question is regarding how I can plot multiple data lines with each having their own fit in one plot?
gnuplot> plot 'data.dat', f(x) via a,b
gnuplot> replot 'data2.dat', f(x) via a,b
This doesn't allow me to plot multiple fits even when I redefine the fitting for f(x) to fit data2.dat. I also tried using another name for the function for data2.dat eg. g(x) and then fitting that but then still the fit for the first one dissappears. So I only get one fit on the plot.
How do I get multiple data with each showing their own fit on one plot?
Please do ask if more info is needed, thanks!
via