Révision 50229851
b/papers/2014/reservation/experiments/src/python/lib/kadeploy.py | ||
---|---|---|
279 | 279 |
stds = [] |
280 | 280 |
data = [] |
281 | 281 |
for size, value in sizes.iteritems(): |
282 |
if len(value) > 0:
|
|
282 |
if len(value) > 1:
|
|
283 | 283 |
data.append(value) |
284 | 284 |
x.append(size) |
285 | 285 |
means.append(np.mean(value)) |
... | ... | |
292 | 292 |
showmeans=True, showextrema=True, showmedians=True) |
293 | 293 |
|
294 | 294 |
ax.set_xlim(0, np.max(x) + 1) |
295 |
# ax.set_ylabel('Deployment Duration (s)') |
|
296 |
# ax.set_xlabel('Deployment Size (\# Machines)') |
|
295 |
|
|
296 |
ax.set_title('Deployment on Cluster %s' % cluster) |
|
297 |
ax.set_ylabel('Deployment Duration (s)') |
|
298 |
ax.set_xlabel('Deployment Size (\# Machines)') |
|
297 | 299 |
# |
298 | 300 |
# ar_means = np.array(means) |
299 | 301 |
# ar_stds = np.array(stds) |
300 | 302 |
# ar_x = np.array(x) |
301 | 303 |
# |
302 | 304 |
# plt.errorbar(ar_x, ar_means, yerr=ar_stds, elinewidth=2, linewidth=2, marker='s', mfc='red') |
303 |
plt.show() |
|
304 |
# plt.savefig(out_dir + "/deployment_size_%s.pdf" % cluster)
|
|
305 |
# plt.show()
|
|
306 |
plt.savefig(out_dir + "/deployment_size_%s.pdf" % cluster) |
|
305 | 307 |
|
306 | 308 |
|
307 | 309 |
def hist_graph(values, title, x_label, y_label, out_file): |
Formats disponibles : Unified diff