|
|
|
|
|
|
|
|
plot_single_transmission("{}/{}".format(args.folder, csv)) |
|
|
plot_single_transmission("{}/{}".format(args.folder, csv)) |
|
|
|
|
|
|
|
|
if len(all_delays_dict) > 0: |
|
|
if len(all_delays_dict) > 0: |
|
|
fig, axes = plt.subplots() |
|
|
|
|
|
|
|
|
#fig, axes = plt.subplots() |
|
|
label_list = list() |
|
|
label_list = list() |
|
|
unit = None |
|
|
unit = None |
|
|
datas = list() |
|
|
datas = list() |
|
|
|
|
|
|
|
|
unit = "Gbit/s" |
|
|
unit = "Gbit/s" |
|
|
label_list.append(bitrate.replace("K", "").replace("M", "").replace("G", "")) |
|
|
label_list.append(bitrate.replace("K", "").replace("M", "").replace("G", "")) |
|
|
datas.append(l) |
|
|
datas.append(l) |
|
|
axes.boxplot(datas) |
|
|
|
|
|
|
|
|
print("Bitrate: {}, len: {}".format(bitrate, len(l))) |
|
|
|
|
|
#print(datas[1]) |
|
|
|
|
|
print(len(datas)) |
|
|
|
|
|
plt.boxplot(datas[1]) |
|
|
|
|
|
#plt.xticks(range(1, len(label_list) + 1), label_list, rotation=-45) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#axes.set_xticklabels(label_list) |
|
|
#axes.set_xticklabels(label_list) |
|
|
axes.set_xlabel("cbr bitrate [{}]".format(unit)) |
|
|
|
|
|
axes.set_ylabel("delay [s]") |
|
|
|
|
|
fig.suptitle("CBR {}".format(direction)) |
|
|
|
|
|
fig.savefig("{}/all_delays_{}_boxplot.pdf".format(args.folder, direction)) |
|
|
|
|
|
|
|
|
plt.xlabel("cbr bitrate [{}]".format(unit)) |
|
|
|
|
|
plt.ylabel("delay [s]") |
|
|
|
|
|
plt.title("CBR {}".format(direction)) |
|
|
|
|
|
plt.show() |
|
|
|
|
|
plt.savefig("{}/all_delays_{}_boxplot.pdf".format(args.folder, direction)) |