I have created my first graph based on the input on stackoverflow. So my code is,
set title "Approximation Graph"
set term png
set output 'plot.png'
f0_h(x) = a0_h * x**2 + b0_h * x + c0_h
fit f0_h(x) 'clk0_h' via 'clk0_h_c'
f1_h(x) = a1_h * x**2 + b1_h * x + c1_h
fit f1_h(x) 'clk1_h' via 'clk1_h_c'
f0_s(x) = a0_s * x**2 + b0_s * x + c0_s
fit f0_s(x) 'clk0_s' via 'clk0_s_c'
f1_s(x) = a1_s * x**2 + b1_s * x + c1_s
fit f1_s(x) 'clk1_s' via 'clk1_s_c'
set style data lines
plot "clk0_h" using 1:2, f0_h(x), "clk1_h" using 1:2, f1_h(x), "clk0_s" using 1:2, f0_s(x), "clk1_s" using 1:2, f1_s(x)
The graph is:
So I have major and minor question.
Major : is it possible to determine coefficient using gnuplot. As of now, I determine manually. (some reason, I can not use numpy in python for determine coefficient)
Minor : Can anyone refer me line property. 1) increase line width 2) change color 3) add a title for each line (to differentiate if they have same color) 4) like I should have 8 line but some are overwrite