git » metnum-tp1.git » master » tree

[master] / plot.gpi

set terminal png enhanced size 1024,768
set autoscale
set style data linespoints

#
# Resultados con precisión fija e iteración variable
#

set xlabel "Iteración"
set ylabel "Resultado"

set output "plot/todos-result-p:51.png"
set title "Comparativa de resultados con precisión 51"
plot [:50] \
	'out/OUT-fcont-prec:51-err' using 1:3 title "Frac. continuas", \
	'out/OUT-binomial-prec:51-err' using 1:3 title "Binomial", \
	'out/OUT-babilonio-prec:51-err' using 1:3 title "Babilonio", \
	sqrt(2)

set output "plot/todos-result-p:51-sin_binomial.png"
set title "Comparativa de resultados con precisión 51 - Detalle"
plot [2.6:11] \
	'out/OUT-fcont-prec:51-err' using 1:3 title "Frac. continuas", \
	'out/OUT-babilonio-prec:51-err' using 1:3 title "Babilonio", \
	sqrt(2)


#
# Error con precisión fija e iteración variable
#

set xlabel "Iteración"

set logscale y
set ylabel "Error (escala logarítmica)"
#unset logscale y
#set ylabel "Error"

# Babilonio
set output "plot/babilonio-err-p:51.png"
set title "Babilonio con precisión 51 - Error"
plot \
	'out/OUT-babilonio-prec:51-err' using 1:5 title "Babilonio"

set output "plot/babilonio-err-p:51-detalle.png"
set title "Babilonio con precisión 51 - Error - Detalle"
plot [:7] \
	'out/OUT-babilonio-prec:51-err' using 1:5 title "Babilonio"

# Binomial
set output "plot/binomial-err-p:51.png"
set title "Binomial con precisión 51 - Error"
plot \
	'out/OUT-binomial-prec:51-err' using 1:5 title "Binomial", \
	'out/OUT-binomial_inc-prec:51-err' using 1:5 title "Binomial inc", \
	'out/OUT-binomial_dec-prec:51-err' using 1:5 title "Binomial dec"

set output "plot/binomial-err-p:15,17.png"
set title "Binomial con precisiónes 15 y 17 - Error"
plot [:170] \
	'out/OUT-binomial_inc-prec:15-err' using 1:5 title "Binomial inc prec = 15", \
	'out/OUT-binomial_dec-prec:15-err' using 1:5 title "Binomial dec prec = 15", \
	'out/OUT-binomial_inc-prec:17-err' using 1:5 title "Binomial inc prec = 17", \
	'out/OUT-binomial_dec-prec:17-err' using 1:5 title "Binomial dec prec = 17"

set output "plot/binomial_dec-err-p:algunos.png"
set title "Binomial dec, distintas precisiónes - Error"
set style data lines
plot \
	'out/OUT-binomial_dec-prec:24-err' using 1:5 title "prec = 24", \
	'out/OUT-binomial_dec-prec:22-err' using 1:5 title "prec = 22", \
	'out/OUT-binomial_dec-prec:20-err' using 1:5 title "prec = 20", \
	'out/OUT-binomial_dec-prec:17-err' using 1:5 title "prec = 17", \
	'out/OUT-binomial_dec-prec:15-err' using 1:5 title "prec = 15", \
	'out/OUT-binomial_dec-prec:12-err' using 1:5 title "prec = 12", \
	'out/OUT-binomial_dec-prec:10-err' using 1:5 title "prec = 10"
set style data linespoints

set output "plot/binomial_dec-err-p:algunos-detalle1.png"
set title "Binomial dec, distintas precisiónes - Error - Detalle 1"
set style data lines
# el 0 esta para mantener los mismos colores que el de arriba
plot [:300] \
	0 title "", \
	0 title "", \
	'out/OUT-binomial_dec-prec:20-err' using 1:5 title "prec = 20", \
	'out/OUT-binomial_dec-prec:17-err' using 1:5 title "prec = 17", \
	'out/OUT-binomial_dec-prec:15-err' using 1:5 title "prec = 15", \
	'out/OUT-binomial_dec-prec:12-err' using 1:5 title "prec = 12", \
	'out/OUT-binomial_dec-prec:10-err' using 1:5 title "prec = 10"
set style data linespoints

set output "plot/binomial_dec-err-p:algunos-detalle2.png"
set title "Binomial dec, distintas precisiónes - Error - Detalle 2"
set style data lines
# el 0 esta para mantener los mismos colores que el de arriba
plot [:100] \
	0 title "", \
	0 title "", \
	0 title "", \
	0 title "", \
	'out/OUT-binomial_dec-prec:15-err' using 1:5 title "prec = 15", \
	'out/OUT-binomial_dec-prec:12-err' using 1:5 title "prec = 12", \
	'out/OUT-binomial_dec-prec:10-err' using 1:5 title "prec = 10"
set style data linespoints


# Fracciones continuas
set output "plot/fcont-err-p:51.png"
set title "Fracciones continuas con precisión 51 - Error"
plot \
	'out/OUT-fcont-prec:51-err' using 1:5 title "Frac. continuas", \
	'out/OUT-fcont_int-prec:51-err' using 1:5 title "Frac. continuas int"

set output "plot/fcont-err-p:51-detalle.png"
set title "Fracciones continuas con precisión 51 - Error - Detalle"
plot [3:10] \
	'out/OUT-fcont-prec:51-err' using 1:5 title "Frac. continuas", \
	'out/OUT-fcont_int-prec:51-err' using 1:5 title "Frac. continuas int"


# Comparativas
set output "plot/todos-err-p:51.png"
set title "Comparativa con precisión 51 - Error"
plot [:200] \
	'out/OUT-fcont-prec:51-err' using 1:5 title "Frac. continuas", \
	'out/OUT-binomial-prec:51-err' using 1:5 title "Binomial", \
	'out/OUT-binomial_dec-prec:51-err' using 1:5 title "Binomial dec", \
	'out/OUT-babilonio-prec:51-err' using 1:5 title "Babilonio"

set output "plot/todos-err-p:51-detalle.png"
set title "Comparativa con precisión 51 - Error - Detalle"
plot [:50] \
	'out/OUT-fcont-prec:51-err' using 1:5 title "Frac. continuas", \
	'out/OUT-binomial-prec:51-err' using 1:5 title "Binomial", \
	'out/OUT-binomial_dec-prec:51-err' using 1:5 title "Binomial dec", \
	'out/OUT-babilonio-prec:51-err' using 1:5 title "Babilonio"


#
# Error con precisión variable e iteración fija
#

set xlabel "Precisión (dígitos)"

# Babilonio
set output "plot/babilonio-err-i:50.png"
set title "Babilonio en iteración 50 - Error"
plot \
	'out/OUT-babilonio-iter:50-err' using 2:5 title "Babilonio"

# Binomial
set output "plot/binomial-err-i:100.png"
set title "Binomial en iteración 100 - Error"
plot \
	'out/OUT-binomial-iter:100-err' using 2:5 title "Binomial", \
	'out/OUT-binomial_inc-iter:100-err' using 2:5 title "Binomial inc", \
	'out/OUT-binomial_dec-iter:100-err' using 2:5 title "Binomial dec"

set output "plot/binomial-err-i:100-detalle.png"
set title "Binomial en iteración 100 - Error - Detalle"
plot [15.8:23.5] \
	'out/OUT-binomial-iter:100-err' using 2:5 title "Binomial", \
	'out/OUT-binomial_inc-iter:100-err' using 2:5 title "Binomial inc", \
	'out/OUT-binomial_dec-iter:100-err' using 2:5 title "Binomial dec"

set output "plot/binomial_dec-err-i:algunas.png"
set title "Binomial en algunas iteraciónes - Error"
plot \
	'out/OUT-binomial_dec-iter:48-err' using 2:5 title "iter = 48", \
	'out/OUT-binomial_dec-iter:49-err' using 2:5 title "iter = 49", \
	'out/OUT-binomial_dec-iter:404-err' using 2:5 title "iter = 404", \
	'out/OUT-binomial_dec-iter:405-err' using 2:5 title "iter = 405"


# Fracciones continuas
set output "plot/fcont-err-i:10.png"
set title "Fracciones continuas en iteración 10 - Error"
plot \
	'out/OUT-fcont-iter:10-err' using 2:5 title "Frac. continuas", \
	'out/OUT-fcont_int-iter:10-err' using 2:5 title "Frac. continuas int"

# 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

# Binomial dec
set title "Binomial dec - Error"
set output "plot/binomial_dec-err-3d.png"
set view 67,138
splot [:52] 'out/OUT-binomial_dec-all-err' using 2:1:5 with lines palette title ""

set pm3d map
set output "plot/binomial_dec-err-map.png"
splot [:51] 'out/OUT-binomial_dec-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 dec - Error - Invertido y detalle"
set output "plot/binomial_dec-err-3d-detalle.png"
set view 62,308
set grid ztics
set zrange [] reverse
splot [:26] 'out/OUT-binomial_dec-all-err' using 2:1:5 with lines palette title ""
set grid noztics
unset zrange

set title "Binomial dec - Error - Invertido y detalle - Alternativo"
set output "plot/binomial_dec-err-3d-detalle-alt.png"
set view 56,287
set grid ztics
set zrange [] reverse
splot [:26] 'out/OUT-binomial_dec-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 dec - Error - Invertido y detalle 2"
set output "plot/binomial_dec-err-3d-detalle2.png"
set view 70,102
set grid ztics
set zrange [] reverse
splot [10:12] [:80] 'out/OUT-binomial_dec-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 dec - Error - Invertido y detalle 3"
set output "plot/binomial_dec-err-3d-detalle3.png"
set view 67,284
set grid ztics
set zrange [] reverse
splot [:30] [40:60] 'out/OUT-binomial_dec-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