set datafile separator ","
f(x)=a*x+b
fit f(x) "55_to_1010.csv" every ::1 using 2:5 via a,b
set terminal png
set xlabel 'Regularity'
set ylabel 'Iterations'
set output "55_to_1010_regularity-vs-steps.png"
plot     "20171020-evolution1D_5x5_100Times_2.csv" every ::1 using 2:5 title "5x5",     "20171005-evolution1D_7x7_100Times.csv" every ::1 using 2:5 title "7x7",     "20171021-evolution1D_10x10_100Times.csv" every ::1 using 2:5 title "10x10",     f(x) title "lin. fit" lc rgb "black"
g(x)=aa*x+bb
fit g(x) "55_to_1010.csv" every ::1 using 4:5 via aa,bb
set xlabel 'Improvement potential'
set ylabel 'Iteration'
set output "55_to_1010_improvement-vs-steps.png"
plot     "20171020-evolution1D_5x5_100Times_2.csv" every ::1 using 4:5 title "5x5",     "20171005-evolution1D_7x7_100Times.csv" every ::1 using 4:5 title "7x7",     "20171021-evolution1D_10x10_100Times.csv" every ::1 using 4:5 title "10x10",     g(x) title "lin. fit" lc rgb "black"
h(x)=aaa*x+bbb
fit h(x) "55_to_1010.csv" every ::1 using 4:6 via aaa,bbb
set xlabel 'Improvement potential'
set ylabel 'Fitting error'
set output "55_to_1010_improvement-vs-evo-error.png"
plot     "20171020-evolution1D_5x5_100Times_2.csv" every ::1 using 4:6 title "5x5",     "20171005-evolution1D_7x7_100Times.csv" every ::1 using 4:6 title "7x7",     "20171021-evolution1D_10x10_100Times.csv" every ::1 using 4:6 title "10x10",     h(x) title "lin. fit" lc rgb "black"
i(x)=aaaa*x+bbbb
fit i(x) "55_to_1010.csv" every ::1 using 3:6 via aaaa,bbbb
set xlabel 'Variability'
set ylabel 'Fitting error'
set output "55_to_1010_variability-vs-evo-error.png"
plot     "20171020-evolution1D_5x5_100Times_2.csv" every ::1 using 3:6 title "5x5",     "20171005-evolution1D_7x7_100Times.csv" every ::1 using 3:6 title "7x7",     "20171021-evolution1D_10x10_100Times.csv" every ::1 using 3:6 title "10x10",     i(x) title "lin. fit" lc rgb "black"
