masterarbeit/dokumentation/evolution1d/gradient.gnuplot.script
2017-10-24 13:22:20 +02:00

27 lines
2.0 KiB
Plaintext

set datafile separator ","
f(x)=a*x+b
fit f(x) "gradient.csv" every ::1 using 2:5 via a,b
set terminal png
set xlabel 'Regularity'
set ylabel 'Iterations'
set output "gradient_regularity-vs-steps.png"
plot "20171020-evolution1D_5x5_100Times_2.csv" every ::1 using 2:5 title "\lambda = 1", "20171020-evolution1D_5x5_100Times-addedOne.csv" every ::1 using 2:5 title "\lambda = 0.5", "20171023-evolution1D_5x5_wrong_100Times.csv" every ::1 using 2:5 title "\lambda = -1", f(x) title "lin. fit" lc rgb "black"
g(x)=aa*x+bb
fit g(x) "gradient.csv" every ::1 using 4:5 via aa,bb
set xlabel 'Improvement potential'
set ylabel 'Iteration'
set output "gradient_improvement-vs-steps.png"
plot "20171020-evolution1D_5x5_100Times_2.csv" every ::1 using 4:5 title "\lambda = 1", "20171020-evolution1D_5x5_100Times-addedOne.csv" every ::1 using 4:5 title "\lambda = 0.5", "20171023-evolution1D_5x5_wrong_100Times.csv" every ::1 using 4:5 title "\lambda = -1", g(x) title "lin. fit" lc rgb "black"
h(x)=aaa*x+bbb
fit h(x) "gradient.csv" every ::1 using 4:6 via aaa,bbb
set xlabel 'Improvement potential'
set ylabel 'Fitting error'
set output "gradient_improvement-vs-evo-error.png"
plot "20171020-evolution1D_5x5_100Times_2.csv" every ::1 using 4:6 title "\lambda = 1", "20171020-evolution1D_5x5_100Times-addedOne.csv" every ::1 using 4:6 title "\lambda = 0.5", "20171023-evolution1D_5x5_wrong_100Times.csv" every ::1 using 4:6 title "\lambda = -1", h(x) title "lin. fit" lc rgb "black"
i(x)=aaaa*x+bbbb
fit i(x) "gradient.csv" every ::1 using 3:6 via aaaa,bbbb
set xlabel 'Variability'
set ylabel 'Fitting error'
set output "gradient_variability-vs-evo-error.png"
plot "20171020-evolution1D_5x5_100Times_2.csv" every ::1 using 3:6 title "\lambda = 1", "20171020-evolution1D_5x5_100Times-addedOne.csv" every ::1 using 3:6 title "\lambda = 0.5", "20171023-evolution1D_5x5_wrong_100Times.csv" every ::1 using 3:6 title "\lambda = -1", i(x) title "lin. fit" lc rgb "black"