author | Alberto Bertogli
<albertito@blitiri.com.ar> 2010-09-07 05:12:40 UTC |
committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2010-09-07 05:12:40 UTC |
parent | e9d49a98da5102f712456caba45c61b5f5e6b7c2 |
gen_plot_data.sh | +12 | -0 |
plot.gpi | +72 | -0 |
diff --git a/gen_plot_data.sh b/gen_plot_data.sh index 10a3c86..8cacdaf 100755 --- a/gen_plot_data.sh +++ b/gen_plot_data.sh @@ -72,3 +72,15 @@ for algo in $algolist; do done done +# Armamos un gran archivo para los plots 3D, dejando lineas en blanco entre +# las distintas "tiradas" de precision +echo "iter join" +for algo in $algolist; do + OF="$OUTDIR/OUT-$algo-all-err" + rm -f $OF + for f in "$OUTDIR"/OUT-$algo-prec:*-err; do + cat "$f" >> $OF + echo >> $OF + done +done + diff --git a/plot.gpi b/plot.gpi index 02114b7..75ba28b 100644 --- a/plot.gpi +++ b/plot.gpi @@ -104,3 +104,75 @@ plot \ # Comparativas + +# +# 3D +# + +unset logscale y +set logscale z +set logscale zcb +set ylabel "Iteración" +set xlabel "Precisión" +set zlabel "Error (logarítmica)" rotate by 90 +unset style data +set hidden3d +set grid xtics ytics +set ticslevel 0 + +# Babilonio +set title "Babilonio - Error" +set output "plot/babilonio-err-3d.png" +set view 67,138 +splot [:52] 'out/OUT-babilonio-all-err' using 2:1:5 with lines palette title "" + +set pm3d map +set output "plot/babilonio-err-map.png" +splot [:51] 'out/OUT-babilonio-all-err' using 2:1:5 title "" +unset pm3d + +# Binomial +set title "Binomial - Error" +set output "plot/binomial-err-3d.png" +set view 67,138 +splot [:52] 'out/OUT-binomial-all-err' using 2:1:5 with lines palette title "" + +set pm3d map +set output "plot/binomial-err-map.png" +splot [:51] 'out/OUT-binomial-all-err' using 2:1:5 title "" +unset pm3d + +set zlabel "Error (logarítmica, invertida)" rotate by 90 offset -1,0,0 + +set title "Binomial - Error - Invertido y detalle" +set output "plot/binomial-err-3d-detalle.png" +set view 62,308 +set grid ztics +set zrange [] reverse +splot [:24] 'out/OUT-binomial-all-err' using 2:1:5 with lines palette title "" +set grid noztics +unset zrange + +set zlabel "Error (logarítmica, invertida)" rotate by 90 offset -5,0,0 +set title "Binomial - Error - Invertido y detalle" +set output "plot/binomial-err-3d-detalle2.png" +set view 70,102 +set grid ztics +set zrange [] reverse +splot [10:12] [:80] 'out/OUT-binomial-all-err' using 2:1:5 with lines palette title "" +set grid noztics +unset zrange + +unset zlabel +set zlabel "Error (logarítmica)" rotate by 90 + +# Fracciones continuas +set title "Fracciones continuas - Error" +set output "plot/fcont-err-3d.png" +set view 67,138 +splot [:52] 'out/OUT-fcont-all-err' using 2:1:5 with lines palette title "" + +set pm3d map +set output "plot/fcont-err-map.png" +splot [:51] 'out/OUT-fcont-all-err' using 2:1:5 title "" +unset pm3d