diff --git a/gnuplot/alt/plot-01.gp b/gnuplot/alt/plot-01.gp new file mode 100755 index 0000000000000000000000000000000000000000..6bc89db7e6ab5abbfd6f5086564e505dc8768bea --- /dev/null +++ b/gnuplot/alt/plot-01.gp @@ -0,0 +1,28 @@ +#!/usr/bin/gnuplot -c + +# Execute o comando: +# ./plot.gp < arquivo_dados +# +# Arquivo de dados recebido pela STDIN deve conter 2 colunas: +# eixo x = coluna 1 = tamanho em Bytes +# eixo y = coluna 2 em diante = indicadores +# +# Gerando gráfico a partir de tabela +set ylabel "FLOPS-DP (MFlops/s)" +set xlabel "N (bytes)" + +set style data point +set style function line +set style line 1 lc 3 pt 7 ps 0.3 + +set terminal qt title "N x FLOPS\_DP" +plot '< cat -' using 1:2 ls 1 notitle with linespoint +pause mouse + +# Gerando figura PNG +set terminal png +# set output "NxFLOPS_DP.png" +## plot '< cat -' using 1:2 ls 1 notitle +## replot +# unset output + diff --git a/gnuplot/gnuplot.pdf b/gnuplot/gnuplot.pdf new file mode 100644 index 0000000000000000000000000000000000000000..3ff8881440946a4c547aa774e198174262999f94 Binary files /dev/null and b/gnuplot/gnuplot.pdf differ diff --git a/gnuplot/plot.gp b/gnuplot/plot.gp new file mode 100755 index 0000000000000000000000000000000000000000..01797ddfa17d9b85f160a038331528cf60955d1c --- /dev/null +++ b/gnuplot/plot.gp @@ -0,0 +1,38 @@ +#!/usr/bin/gnuplot -c +set grid +set style data point +set style function line +set style line 1 lc 3 pt 7 ps 0.3 +set boxwidth 1 +set xtics +set xrange ["0":] +set xlabel "N (bytes)" + +# +# ALTERNATIVA 1: Tabelas em arquivos separados (2 colunas) +# +set ylabel "<metrica 1>" +set title "<campo[marcador 1]>" +set terminal qt 0 title "<campo[marcador 1]>" +plot 'plot_exemplo-01.dat' title "<sem otimização>" with linespoints, \ + 'plot_exemplo-02.dat' title "<com otimização>" with linespoints + +# +# ALTERNATIVA 2: Tabela com 3 colunas +# +set ylabel "<metrica 1>" +set title "<campo[marcador 1]>" +set terminal qt 1 title "<campo[marcador 1]>" +plot 'plot_exemplo-03.dat' using 1:2 title "<sem otimização>" with linespoints, \ + '' using 1:3 title "<com otimização>" with linespoints + +pause mouse + +# Gerando figura PNG +set terminal png +set output "funcao__NxMetrica.png" +plot 'plot_exemplo-03.dat' using 1:2 title "<sem otimização>" with linespoints, \ + '' using 1:3 title "<com otimização>" with linespoints +replot +unset output + diff --git a/gnuplot/plot_exemplo-01.dat b/gnuplot/plot_exemplo-01.dat new file mode 100644 index 0000000000000000000000000000000000000000..80be8a97aa032c88f76a50600b4a4a2857c9ba46 --- /dev/null +++ b/gnuplot/plot_exemplo-01.dat @@ -0,0 +1,7 @@ +# Marcador "matPtrVet" +# n <METRICA 1> (sem otimização) +64 0.5 +100 50.433210629261 +128 25.798359943835 +2000 27.337482595053 +2048 18.873424079086 diff --git a/gnuplot/plot_exemplo-02.dat b/gnuplot/plot_exemplo-02.dat new file mode 100644 index 0000000000000000000000000000000000000000..d5c852b1b620a8975b0a50487ffd5704d8832612 --- /dev/null +++ b/gnuplot/plot_exemplo-02.dat @@ -0,0 +1,7 @@ +# Marcador "matPtrVet" +# n <METRICA 1> (com otimização) +64 0.5 +100 45.433210629261 +128 21.798359943835 +2000 21.337482595053 +2048 14.873424079086 diff --git a/gnuplot/plot_exemplo-03.dat b/gnuplot/plot_exemplo-03.dat new file mode 100644 index 0000000000000000000000000000000000000000..48cda506b929acc0ff78a9317b3a9c38e43175af --- /dev/null +++ b/gnuplot/plot_exemplo-03.dat @@ -0,0 +1,7 @@ +# Marcador "matRowVet" <METRICA 1> +# n sem_otimz. com_otimiz. +64 0.7 0.7 +100 50.433210629261 45.433210629261 +128 25.798359943835 21.798359943835 +2000 27.337482595053 21.337482595053 +2048 18.873424079086 14.873424079086