From e65b5c77b58ba81380c07e7fed1b9ef5f19ee9ae Mon Sep 17 00:00:00 2001 From: Lukas Prause Date: Wed, 16 Mar 2022 14:24:38 +0100 Subject: [PATCH] WIP --- analyse_udp.py | 19 +++++++++++++------ measurement_main.py | 4 ++++ 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/analyse_udp.py b/analyse_udp.py index 2e3b5b8..99a852b 100755 --- a/analyse_udp.py +++ b/analyse_udp.py @@ -105,7 +105,7 @@ if __name__ == "__main__": plot_single_transmission("{}/{}".format(args.folder, csv)) if len(all_delays_dict) > 0: - fig, axes = plt.subplots() + #fig, axes = plt.subplots() label_list = list() unit = None datas = list() @@ -119,9 +119,16 @@ if __name__ == "__main__": unit = "Gbit/s" label_list.append(bitrate.replace("K", "").replace("M", "").replace("G", "")) 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_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)) \ No newline at end of file + 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)) \ No newline at end of file diff --git a/measurement_main.py b/measurement_main.py index 1f783ac..45a9e28 100755 --- a/measurement_main.py +++ b/measurement_main.py @@ -1,4 +1,8 @@ #!/usr/bin/env python3 + +# Master: ptpd -i {PTP Interface des Masters} -M -u {IP des Slaves} +# Slave: ptpd -i {PTP Interface des Slaves} -s -u {IP des Masters} + import json import requests import os