masterarbeit/dokumentation/evolution3d/4x4xX.gnuplot.script
2017-10-27 14:31:55 +02:00

27 lines
1.9 KiB
Plaintext

set datafile separator ","
f(x)=a*x+b
fit f(x) "4x4xX.csv" every ::1 using 1:5 via a,b
set terminal png
set xlabel 'Regularity'
set ylabel 'Number of iterations'
set output "4x4xX_regularity-vs-steps.png"
plot "20170926_3dFit_4x4x4_100times.csv" every ::1 using 1:5 title "4x4x4" pt 2, "20171005_3dFit_4x4x5_100times.csv" every ::1 using 1:5 title "4x4x5" pt 2, "20171013_3dFit_4x4x7_100times.csv" every ::1 using 1:5 title "4x4x7" pt 2, f(x) title "lin. fit" lc rgb "black"
g(x)=aa*x+bb
fit g(x) "4x4xX.csv" every ::1 using 3:5 via aa,bb
set xlabel 'Improvement potential'
set ylabel 'Number of iterations'
set output "4x4xX_improvement-vs-steps.png"
plot "20170926_3dFit_4x4x4_100times.csv" every ::1 using 3:5 title "4x4x4" pt 2, "20171005_3dFit_4x4x5_100times.csv" every ::1 using 3:5 title "4x4x5" pt 2, "20171013_3dFit_4x4x7_100times.csv" every ::1 using 3:5 title "4x4x7" pt 2, g(x) title "lin. fit" lc rgb "black"
h(x)=aaa*x+bbb
fit h(x) "4x4xX.csv" every ::1 using 3:4 via aaa,bbb
set xlabel 'Improvement potential'
set ylabel 'Error given by fitness-function'
set output "4x4xX_improvement-vs-evo-error.png"
plot "20170926_3dFit_4x4x4_100times.csv" every ::1 using 3:4 title "4x4x4" pt 2, "20171005_3dFit_4x4x5_100times.csv" every ::1 using 3:4 title "4x4x5" pt 2, "20171013_3dFit_4x4x7_100times.csv" every ::1 using 3:4 title "4x4x7" pt 2, h(x) title "lin. fit" lc rgb "black"
i(x)=aaaa*x+bbbb
fit i(x) "4x4xX.csv" every ::1 using 2:4 via aaaa,bbbb
set xlabel 'Variability'
set ylabel 'Error given by fitness-function'
set output "4x4xX_variability-vs-evo-error.png"
plot "20170926_3dFit_4x4x4_100times.csv" every ::1 using 2:4 title "4x4x4" pt 2, "20171005_3dFit_4x4x5_100times.csv" every ::1 using 2:4 title "4x4x5" pt 2, "20171013_3dFit_4x4x7_100times.csv" every ::1 using 2:4 title "4x4x7" pt 2, i(x) title "lin. fit" lc rgb "black"