From b336cf7fa75c810dedeadade6bf3c44c2eeb24d9 Mon Sep 17 00:00:00 2001 From: david <david@lipn.fr> Date: Tue, 8 Sep 2020 21:34:27 +0200 Subject: [PATCH] =?UTF-8?q?script=20gnuplot=20am=C3=A9lior=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plots/plot_result | 40 +++++++++++++++++++++++++++++++++++++--- 1 file changed, 37 insertions(+), 3 deletions(-) diff --git a/plots/plot_result b/plots/plot_result index 4545ba8..5118dc0 100644 --- a/plots/plot_result +++ b/plots/plot_result @@ -1,5 +1,39 @@ -plot [0:1000000][0:600] 'dynamic_array_time_c.plot' using 1:3 w lines title "Amortized C", 'dynamic_array_time_cpp.plot' using 1:3 w lines title "Amortized C++", 'dynamic_array_time_java.plot' using 1:3 w lines title "Amortized JAVA", 'dynamic_array_time_python.plot' using 1:3 w lines title "Amortized Python", 'dynamic_array_copy_c.plot' using 1:2 w boxes title "Memory Allocation" +# Script GNUPLOT +# Dire que le fichier de sortie est un fichier Postscript +set terminal postscript color -plot 'dynamic_array_memory_c.plot' using 1:2 w lines title "Espace memoire inutilise" +set xlabel "Nombre d'elements ajoutes" font "Helvetica,24" -plot 'dynamic_array_copy_c.plot' using 1:2 w boxes title "Nombre de copies de valeurs effectuees" \ No newline at end of file + +############################################################## +########### Affichage des temps de calcul amortis ########### +############################################################## +# Titre de l'axe des ordonnées +set ylabel "Temps amorti" font "Helvetica,24" + +# Nom du fichier Postscript en sortie +set output 'eps/dynamic_array_amortized_time_alpha_2.eps' + +plot [0:1000000][0:600] 'plot_files/dynamic_array_time_c.plot' using 1:3 w lines title "Amortized C", 'plot_files/dynamic_array_time_cpp.plot' using 1:3 w lines title "Amortized C++", 'plot_files/dynamic_array_time_java.plot' using 1:3 w lines title "Amortized JAVA", 'plot_files/dynamic_array_time_python.plot' using 1:3 w lines title "Amortized Python" + +############################################################### +########### Affichage de l'espace mémoire gaspillé ########### +############################################################### +# Titre de l'axe des ordonnées +set ylabel "Mémoire gaspillée" font "Helvetica,24" + +# Nom du fichier Postscript en sortie +set output 'eps/dynamic_array_wasted_memory_alpha_2.eps' + +plot 'plot_files/dynamic_array_memory_c.plot' using 1:2 w lines title "Espace memoire inutilise" + +################################################################# +########### Affichage du nombre de copies effectuées ########### +################################################################# +# Titre de l'axe des ordonnées +set ylabel "Nombre de copie effectuée" font "Helvetica,24" + +# Nom du fichier Postscript en sortie +set output 'eps/dynamic_copy_alpha_2.eps' + +plot 'plot_files/dynamic_array_copy_c.plot' using 1:2 w boxes title "Nombre de copies de valeurs effectuees" \ No newline at end of file -- GitLab