smbinterp/plots/scalability/scalability_histograms.py
Stephen Mardson McQuay 1fe860d2d1 moved the plot files around
--HG--
rename : plots/resolution.2D.64.out => plots/resolution/resolution.2D.64.out
rename : plots/resolution.2D.regular.plt => plots/resolution/resolution.2D.regular.plt
rename : plots/resolution.3D.gmsh.out => plots/resolution/resolution.3D.gmsh.out
rename : plots/resolution.3D.gmsh.plt => plots/resolution/resolution.3D.gmsh.plt
rename : gmsh/rms/2D/rms.onering.plt => plots/rms/2D/rms.onering.plt
rename : gmsh/rms/2D/rms.out => plots/rms/2D/rms.out
rename : gmsh/rms/2D/rms.res.1-4.order.2.plt => plots/rms/2D/rms.res.1-4.order.2.plt
rename : gmsh/rms/2D/rms.res.1-4.order.3.plt => plots/rms/2D/rms.res.1-4.order.3.plt
rename : gmsh/rms/2D/rms.res.1-4.order.4.plt => plots/rms/2D/rms.res.1-4.order.4.plt
rename : gmsh/rms/2D/rms.res.1-4.order.5.plt => plots/rms/2D/rms.res.1-4.order.5.plt
rename : gmsh/rms/2D/rms.res.1.order.2-5.plt => plots/rms/2D/rms.res.1.order.2-5.plt
rename : gmsh/rms/2D/rms.res.2.order.2-5.plt => plots/rms/2D/rms.res.2.order.2-5.plt
rename : gmsh/rms/2D/rms.res.3.order.2-5.plt => plots/rms/2D/rms.res.3.order.2-5.plt
rename : gmsh/rms/2D/rms.res.4.order.2-5.plt => plots/rms/2D/rms.res.4.order.2-5.plt
rename : plots/scalability_histograms.py => plots/scalability/scalability_histograms.py
rename : plots/analyze.py => plots/scalability/scalability_plot_gen.py
rename : plots/scale.out => plots/scalability/scale.out
rename : plots/scale.plt => plots/scalability/thruput.plt
rename : gmsh/timing/2D/time.onering.plt => plots/timing/2D/time.onering.plt
rename : gmsh/timing/2D/time.out => plots/timing/2D/time.out
rename : gmsh/timing/2D/time.res.1-4.order.2.plt => plots/timing/2D/time.res.1-4.order.2.plt
rename : gmsh/timing/2D/time.res.1-4.order.3.plt => plots/timing/2D/time.res.1-4.order.3.plt
rename : gmsh/timing/2D/time.res.1-4.order.4.plt => plots/timing/2D/time.res.1-4.order.4.plt
rename : gmsh/timing/2D/time.res.1-4.order.5.plt => plots/timing/2D/time.res.1-4.order.5.plt
rename : gmsh/timing/2D/time.res.1.order.2-5.plt => plots/timing/2D/time.res.1.order.2-5.plt
rename : gmsh/timing/2D/time.res.2.order.2-5.plt => plots/timing/2D/time.res.2.order.2-5.plt
rename : gmsh/timing/2D/time.res.3.order.2-5.plt => plots/timing/2D/time.res.3.order.2-5.plt
rename : gmsh/timing/2D/time.res.4.order.2-5.plt => plots/timing/2D/time.res.4.order.2-5.plt
rename : gmsh/timing/3D/time.onering.plt => plots/timing/3D/time.onering.plt
rename : gmsh/timing/3D/time.out => plots/timing/3D/time.out
rename : gmsh/timing/3D/time.res.1-3.order.2.plt => plots/timing/3D/time.res.1-3.order.2.plt
rename : gmsh/timing/3D/time.res.1-3.order.3.plt => plots/timing/3D/time.res.1-3.order.3.plt
rename : gmsh/timing/3D/time.res.1-3.order.4.plt => plots/timing/3D/time.res.1-3.order.4.plt
rename : gmsh/timing/3D/time.res.1-3.order.5.plt => plots/timing/3D/time.res.1-3.order.5.plt
rename : gmsh/timing/3D/time.res.1.order.2-5.plt => plots/timing/3D/time.res.1.order.2-5.plt
rename : gmsh/timing/3D/time.res.2.order.2-5.plt => plots/timing/3D/time.res.2.order.2-5.plt
rename : gmsh/timing/3D/time.res.3.order.2-5.plt => plots/timing/3D/time.res.3.order.2-5.plt
rename : gmsh/truthiness/2D/truthy.2D.onering.plt => plots/truthiness/2D/truthy.2D.onering.plt
rename : gmsh/truthiness/2D/truthy.2D.out => plots/truthiness/2D/truthy.2D.out
rename : gmsh/truthiness/3D/data.out => plots/truthiness/3D/data.out
rename : gmsh/truthiness/3D/onering.plt => plots/truthiness/3D/onering.plt
rename : gmsh/truthiness/3D/res.1-3.order.2.plt => plots/truthiness/3D/res.1-3.order.2.plt
rename : gmsh/truthiness/3D/res.1-3.order.3.plt => plots/truthiness/3D/res.1-3.order.3.plt
rename : gmsh/truthiness/3D/res.1-3.order.4.plt => plots/truthiness/3D/res.1-3.order.4.plt
rename : gmsh/truthiness/3D/res.1-3.order.5.plt => plots/truthiness/3D/res.1-3.order.5.plt
rename : gmsh/truthiness/3D/res.1.order.2-5.plt => plots/truthiness/3D/res.1.order.2-5.plt
rename : gmsh/truthiness/3D/res.2.order.2-5.plt => plots/truthiness/3D/res.2.order.2-5.plt
rename : gmsh/truthiness/3D/res.3.order.2-5.plt => plots/truthiness/3D/res.3.order.2-5.plt
2011-05-28 12:59:20 -06:00

36 lines
859 B
Python

import sys
import shelve
import pickle
import numpy as np
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
if len(sys.argv) != 2:
print "usage: %s <interp.shelve>" % sys.argv[0]
sys.exit(1)
s = shelve.open(sys.argv[1])
d = dict(s)
s.close()
c = 0
for line in (i[1] for i in sorted(d.iteritems(), key = lambda x: x[1]['stats']['participants'])):
c += 1
run = line['stats']
x = np.array(run['tasks'].values())
# the histogram of the data
plt.figure(c)
plt.title("Histogram of Interpolation Performance")
plt.xlabel("Number of Interpolations Performed")
plt.ylabel("Number of minions")
n, bins, patches = plt.hist(x) # , 50, normed=1, facecolor='green', alpha=0.5)
plt.grid(True)
output_file_name = 'asdf.%0.3d.%d.png' % (run['participants'], str(run['count']).count("0"))
plt.savefig(output_file_name)