|
|
@ -3,7 +3,8 @@
|
|
|
|
import matplotlib.pylab as plt
|
|
|
|
import matplotlib.pylab as plt
|
|
|
|
import csv
|
|
|
|
import csv
|
|
|
|
import sys
|
|
|
|
import sys
|
|
|
|
if len(sys.argv) == 2:
|
|
|
|
|
|
|
|
|
|
|
|
if len(sys.argv) >= 2:
|
|
|
|
infile = sys.argv[1]
|
|
|
|
infile = sys.argv[1]
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
infile = 'data.txt'
|
|
|
|
infile = 'data.txt'
|
|
|
@ -23,6 +24,7 @@ with open(infile) as FILE:
|
|
|
|
x_values.append(float(row[4]))
|
|
|
|
x_values.append(float(row[4]))
|
|
|
|
y_values.append(float(row[0]))
|
|
|
|
y_values.append(float(row[0]))
|
|
|
|
y_err.append(float(row[1]))
|
|
|
|
y_err.append(float(row[1]))
|
|
|
|
print(x_values)
|
|
|
|
plt.xlabel("Kerne")
|
|
|
|
|
|
|
|
plt.ylabel("Rechenleistung in GFlops")
|
|
|
|
plt.errorbar(x_values,y_values,yerr=y_err, fmt='.')
|
|
|
|
plt.errorbar(x_values,y_values,yerr=y_err, fmt='.')
|
|
|
|
plt.savefig(outfile)
|
|
|
|
plt.savefig(outfile)
|
|
|
|