From 41ffcaead5ad4671417c0a41f2ea8f6d1e7849dc Mon Sep 17 00:00:00 2001 From: David Kaufmann Date: Thu, 26 Jan 2012 22:29:43 +0100 Subject: [PATCH] move stats to stats dir --- openmp/prefix/parseDat.py | 2 +- openmp/prefix/prefix.plt | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/openmp/prefix/parseDat.py b/openmp/prefix/parseDat.py index cef4899..0b3fa0e 100755 --- a/openmp/prefix/parseDat.py +++ b/openmp/prefix/parseDat.py @@ -37,7 +37,7 @@ for line in lines: in_file.close() for key in algos: - out_file = open(options.outfilename+"."+key+".dat", "w") + out_file = open("stats/"+options.outfilename+"."+key+".dat", "w") for res in algos[key]: out_file.write(res['size']+";"+res['time']+"\n") out_file.close() diff --git a/openmp/prefix/prefix.plt b/openmp/prefix/prefix.plt index 67f2c00..8dbe37b 100644 --- a/openmp/prefix/prefix.plt +++ b/openmp/prefix/prefix.plt @@ -1,5 +1,5 @@ set terminal png font arial 8 size #600,300 -set output 'prefix.png' +set output 'stats/prefix.png' set grid set title "Time required for each algorithm" set xlabel "Size of array" @@ -9,11 +9,11 @@ set ylabel "Time needed for calculation" #set xtics 0,25,200 #set ytics 0,0.1,0.75 set datafile separator ";" -plot 'prefix.datapar.dat' using 1:2 notitle with points, \ - 'prefix.datapar.dat' using 1:2 title "datapar" with lines, \ - 'prefix.hillis.dat' using 1:2 notitle with points, \ - 'prefix.hillis.dat' using 1:2 title "hillis" with lines, \ - 'prefix.seq.dat' using 1:2 notitle with points, \ - 'prefix.seq.dat' using 1:2 title "seq" with lines, \ - 'prefix.recurse.dat' using 1:2 notitle with points, \ - 'prefix.recurse.dat' using 1:2 title "recurse" with lines +plot 'stats/prefix.datapar.dat' using 1:2 notitle with points, \ + 'stats/prefix.datapar.dat' using 1:2 title "datapar" with lines, \ + 'stats/prefix.hillis.dat' using 1:2 notitle with points, \ + 'stats/prefix.hillis.dat' using 1:2 title "hillis" with lines, \ + 'stats/prefix.seq.dat' using 1:2 notitle with points, \ + 'stats/prefix.seq.dat' using 1:2 title "seq" with lines, \ + 'stats/prefix.recurse.dat' using 1:2 notitle with points, \ + 'stats/prefix.recurse.dat' using 1:2 title "recurse" with lines -- 2.43.0