# statistics on RTT
rtts = [content_names[content_name]["rtt"] \
- for content_name in list(content_names.keys())]
+ for content_name in content_names]
# sample mean and standard deviation
sample = numpy.array(rtts)
low = numpy.array([float(m[1]) for m in metrics])
high = numpy.array([float(m[2]) for m in metrics])
error = [y - low, high - y]
- x = list(range(1,runs + 1))
+ x = range(1,runs + 1)
# plot average RTT and confidence interval for each iteration
pyplot.errorbar(x, y, yerr = error, fmt='o')