curve_fitting linear/quadratic curve fitting compile g++ -o xx main.cpp gnuplot plot "data.txt", "data_result.txt" u 1:2 w l, "data_result.txt" u 1:3 w l