I am trying to approximation Graph(curve Fitting) for quadratic equation. I have 4 data File which contain x and y column.I determine coefficient and write each coefficient File for each data File.
clk0_h clk0_h_c clk0_s clk0_s_c clk1_h clk1_h_c clk1_s clk1_s_c
c coefficient File (As of now I determie manually for generate Graph in python)
The Graph I got is:
The gnuplot code is:
set title "Approximation Graph"
set term png
set output 'plot.png'
f(x) = a*x*x + b*x + c
fit f(x) 'clk0_h' via 'clk0_h_c'
fit f(x) 'clk1_h' via 'clk1_h_c'
fit f(x) 'clk0_s' via 'clk0_s_c'
fit f(x) 'clk1_s' via 'clk1_s_c'
plot "clk0_h" using 1:2 with lines, f(x), "clk1_h" using 1:2 with lines, f(x), "clk0_s" using 1:2 with lines, f(x), "clk1_s" using 1:2 with lines, f(x)
I am trying to approximation graph of each line. But it looks like, it has mixed or overwrite. I need to create following Graph using gnuplot.I know, I am very far from original graph. But Can I know, Can be create scatter graph using gnuplot.
In the below graph, dash line represent the approximation ( for sample represent in two only) But In working Graph, we need four approximation line.

I tried gnuplot today only and need to create graph also.