I am trying to do a piecewise linear fit in (bash heredoc/script for) gnuplot. I tried this :
plot "datafile1" u 1:2:6:7:10:11 with xyerrorbars,\
"datafile1" u 1:4:8:9:10:11 with xyerrorbars,\
"datafile2" u 1:2:3 with xyerrorbars,\
[xmin:xmax] f(x)
but it returns an invalid expression error. Any ideas why this fails?
note - fit [xmin:xmax] f(x)
does not return any error messages (so I assume it works).
GNUPLOT 4.4.3