set datafile separator ","
f(x)=a*x+b
fit f(x) "adv-lamb_75.csv" every ::1 using 2:5 via a,b
set terminal png
set xlabel 'Regularity'
set ylabel 'Iterations'
set output "adv-lamb_75_regularity-vs-steps.png"
plot "adv-lamb_75.csv" every ::1 using 2:5 title "data", f(x) title "lin. fit" lc rgb "black"
g(x)=aa*x+bb
fit g(x) "adv-lamb_75.csv" every ::1 using 4:5 via aa,bb
set xlabel 'Improvement potential'
set ylabel 'Iterations'
set output "adv-lamb_75_improvement-vs-steps.png"
plot "adv-lamb_75.csv" every ::1 using 4:5 title "data", g(x) title "lin. fit" lc rgb "black"
h(x)=aaa*x+bbb
fit h(x) "adv-lamb_75.csv" every ::1 using 4:6 via aaa,bbb
set xlabel 'Improvement potential'
set ylabel 'Fitting error'
set output "adv-lamb_75_improvement-vs-evo-error.png"
plot "adv-lamb_75.csv" every ::1 using 4:6 title "data", h(x) title "lin. fit" lc rgb "black"
