From 0dfc17f9505b03e95c1c1c6d2bd73cfd07f5befc Mon Sep 17 00:00:00 2001 From: Langspielplatte Date: Tue, 11 Jul 2023 09:25:14 +0200 Subject: [PATCH 1/8] Legend fixes --- plot_single_transmission_EM9190.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plot_single_transmission_EM9190.py b/plot_single_transmission_EM9190.py index 6ef2645..4a9d79c 100755 --- a/plot_single_transmission_EM9190.py +++ b/plot_single_transmission_EM9190.py @@ -312,12 +312,13 @@ if __name__ == "__main__": ax01.set_ylabel("Bandwidth [MHz]") if args.fancy: + legend_frame = False ax0.set_xlim([0, transmission_df.index[-1]]) ax00.set_xlim([0, transmission_df.index[-1]]) # added these three lines lns_ax0 = snd_plot + srtt_plot + goodput_plot labs_ax0 = [l.get_label() for l in lns_ax0] - ax0.legend(lns_ax0, labs_ax0, ncols=9, fontsize=9, loc="upper center") + ax0.legend(lns_ax0, labs_ax0, ncols=9, fontsize=9, loc="upper center", frameon=legend_frame).set_zorder(104) #ax0.set_zorder(100) lns_ax00 = eff_bw_plot + lte_eff_bw_plot + nr_eff_bw_plot + lte_rsrq_plot + nr_rsrq_plot @@ -326,7 +327,7 @@ if __name__ == "__main__": if nr_hanover_plot: lns_ax00.append(nr_hanover_plot) labs_ax00 = [l.get_label() for l in lns_ax00] - ax00.legend(lns_ax00, labs_ax00, ncols=3, fontsize=9, loc="upper center") + ax00.legend(lns_ax00, labs_ax00, ncols=3, fontsize=9, loc="upper center", frameon=legend_frame).set_zorder(104) #ax00.set_zorder(100) plt.savefig("{}{}_plot.eps".format(args.save, csv.replace(".csv", "")), bbox_inches="tight") else: From 32184560f4638f7c6eb0aa2fb40c06dd1ccb9296 Mon Sep 17 00:00:00 2001 From: Langspielplatte Date: Tue, 11 Jul 2023 09:43:00 +0200 Subject: [PATCH 2/8] Legend fixes --- plot_single_transmission_EM9190.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plot_single_transmission_EM9190.py b/plot_single_transmission_EM9190.py index 4a9d79c..bfae89d 100755 --- a/plot_single_transmission_EM9190.py +++ b/plot_single_transmission_EM9190.py @@ -318,7 +318,7 @@ if __name__ == "__main__": # added these three lines lns_ax0 = snd_plot + srtt_plot + goodput_plot labs_ax0 = [l.get_label() for l in lns_ax0] - ax0.legend(lns_ax0, labs_ax0, ncols=9, fontsize=9, loc="upper center", frameon=legend_frame).set_zorder(104) + ax0.move_legend(lns_ax0, labs_ax0, ncols=9, fontsize=9, loc="upper center", frameon=legend_frame) #ax0.set_zorder(100) lns_ax00 = eff_bw_plot + lte_eff_bw_plot + nr_eff_bw_plot + lte_rsrq_plot + nr_rsrq_plot @@ -327,7 +327,7 @@ if __name__ == "__main__": if nr_hanover_plot: lns_ax00.append(nr_hanover_plot) labs_ax00 = [l.get_label() for l in lns_ax00] - ax00.legend(lns_ax00, labs_ax00, ncols=3, fontsize=9, loc="upper center", frameon=legend_frame).set_zorder(104) + ax00.move_legend(lns_ax00, labs_ax00, ncols=3, fontsize=9, loc="upper center", frameon=legend_frame) #ax00.set_zorder(100) plt.savefig("{}{}_plot.eps".format(args.save, csv.replace(".csv", "")), bbox_inches="tight") else: From 772f2d704a2ceb00cffa9590a5d31f2fe2520197 Mon Sep 17 00:00:00 2001 From: Langspielplatte Date: Tue, 11 Jul 2023 09:47:22 +0200 Subject: [PATCH 3/8] Legend fixes --- plot_single_transmission_EM9190.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plot_single_transmission_EM9190.py b/plot_single_transmission_EM9190.py index bfae89d..c76faff 100755 --- a/plot_single_transmission_EM9190.py +++ b/plot_single_transmission_EM9190.py @@ -318,7 +318,8 @@ if __name__ == "__main__": # added these three lines lns_ax0 = snd_plot + srtt_plot + goodput_plot labs_ax0 = [l.get_label() for l in lns_ax0] - ax0.move_legend(lns_ax0, labs_ax0, ncols=9, fontsize=9, loc="upper center", frameon=legend_frame) + #ax0.legend(lns_ax0, labs_ax0, ncols=9, fontsize=9, loc="upper center", frameon=legend_frame) + sns.move_legend(lns_ax0, labs_ax0, ncols=9, fontsize=9, loc="upper center", frameon=legend_frame) #ax0.set_zorder(100) lns_ax00 = eff_bw_plot + lte_eff_bw_plot + nr_eff_bw_plot + lte_rsrq_plot + nr_rsrq_plot @@ -327,7 +328,8 @@ if __name__ == "__main__": if nr_hanover_plot: lns_ax00.append(nr_hanover_plot) labs_ax00 = [l.get_label() for l in lns_ax00] - ax00.move_legend(lns_ax00, labs_ax00, ncols=3, fontsize=9, loc="upper center", frameon=legend_frame) + #ax00.legend(lns_ax00, labs_ax00, ncols=3, fontsize=9, loc="upper center", frameon=legend_frame) + sns.move_legend(lns_ax00, labs_ax00, ncols=3, fontsize=9, loc="upper center", frameon=legend_frame) #ax00.set_zorder(100) plt.savefig("{}{}_plot.eps".format(args.save, csv.replace(".csv", "")), bbox_inches="tight") else: From 4b291f04bac82ec286cb988cb218d7cbbb2146ee Mon Sep 17 00:00:00 2001 From: Langspielplatte Date: Tue, 11 Jul 2023 09:50:45 +0200 Subject: [PATCH 4/8] Legend fixes --- plot_single_transmission_EM9190.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plot_single_transmission_EM9190.py b/plot_single_transmission_EM9190.py index c76faff..d0b678b 100755 --- a/plot_single_transmission_EM9190.py +++ b/plot_single_transmission_EM9190.py @@ -318,8 +318,7 @@ if __name__ == "__main__": # added these three lines lns_ax0 = snd_plot + srtt_plot + goodput_plot labs_ax0 = [l.get_label() for l in lns_ax0] - #ax0.legend(lns_ax0, labs_ax0, ncols=9, fontsize=9, loc="upper center", frameon=legend_frame) - sns.move_legend(lns_ax0, labs_ax0, ncols=9, fontsize=9, loc="upper center", frameon=legend_frame) + ax2.legend(lns_ax0, labs_ax0, ncols=9, fontsize=9, loc="upper center", frameon=legend_frame) #ax0.set_zorder(100) lns_ax00 = eff_bw_plot + lte_eff_bw_plot + nr_eff_bw_plot + lte_rsrq_plot + nr_rsrq_plot @@ -328,8 +327,7 @@ if __name__ == "__main__": if nr_hanover_plot: lns_ax00.append(nr_hanover_plot) labs_ax00 = [l.get_label() for l in lns_ax00] - #ax00.legend(lns_ax00, labs_ax00, ncols=3, fontsize=9, loc="upper center", frameon=legend_frame) - sns.move_legend(lns_ax00, labs_ax00, ncols=3, fontsize=9, loc="upper center", frameon=legend_frame) + ax02.legend(lns_ax00, labs_ax00, ncols=3, fontsize=9, loc="upper center", frameon=legend_frame) #ax00.set_zorder(100) plt.savefig("{}{}_plot.eps".format(args.save, csv.replace(".csv", "")), bbox_inches="tight") else: From 11749d39a3d1e7b88a6c6e02afdd839a784f3bc9 Mon Sep 17 00:00:00 2001 From: Langspielplatte Date: Tue, 11 Jul 2023 09:54:20 +0200 Subject: [PATCH 5/8] Legend fixes --- plot_single_transmission_EM9190.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plot_single_transmission_EM9190.py b/plot_single_transmission_EM9190.py index d0b678b..725b1fb 100755 --- a/plot_single_transmission_EM9190.py +++ b/plot_single_transmission_EM9190.py @@ -295,7 +295,7 @@ if __name__ == "__main__": ax0.set_ylim(0, 5000) ax1.set_ylim(0, 0.3) - ax2.set_ylim(0, 500) + ax2.set_ylim(0, 600) ax00.set_ylim(-25, 0) ax01.set_ylim(0, 250) # second dB axis From af2a53abb3b655fd534a612764b52ceb7512c9f4 Mon Sep 17 00:00:00 2001 From: Langspielplatte Date: Tue, 11 Jul 2023 09:57:29 +0200 Subject: [PATCH 6/8] Legend fixes --- plot_single_transmission_EM9190.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plot_single_transmission_EM9190.py b/plot_single_transmission_EM9190.py index 725b1fb..f882d23 100755 --- a/plot_single_transmission_EM9190.py +++ b/plot_single_transmission_EM9190.py @@ -318,7 +318,7 @@ if __name__ == "__main__": # added these three lines lns_ax0 = snd_plot + srtt_plot + goodput_plot labs_ax0 = [l.get_label() for l in lns_ax0] - ax2.legend(lns_ax0, labs_ax0, ncols=9, fontsize=9, loc="upper center", frameon=legend_frame) + ax2.legend(lns_ax0, labs_ax0, ncols=9, fontsize=9, loc="upper left", frameon=legend_frame) #ax0.set_zorder(100) lns_ax00 = eff_bw_plot + lte_eff_bw_plot + nr_eff_bw_plot + lte_rsrq_plot + nr_rsrq_plot From ef9740177e415e25108fe932cba63cb104b71fad Mon Sep 17 00:00:00 2001 From: Langspielplatte Date: Tue, 11 Jul 2023 10:04:32 +0200 Subject: [PATCH 7/8] Removes legend border frame. --- plot_stacked_bandwidth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plot_stacked_bandwidth.py b/plot_stacked_bandwidth.py index 260050e..557fce3 100755 --- a/plot_stacked_bandwidth.py +++ b/plot_stacked_bandwidth.py @@ -80,7 +80,7 @@ if __name__ == "__main__": ax.xaxis.grid(False) - L = plt.legend() + L = plt.legend(frameon=False) L.get_texts()[0].set_text("5G main") L.get_texts()[1].set_text("4G main") L.get_texts()[2].set_text("4G SCC 1") From dde4350a00d60fe324b08b5854e057e22197b77b Mon Sep 17 00:00:00 2001 From: Langspielplatte Date: Tue, 11 Jul 2023 10:15:55 +0200 Subject: [PATCH 8/8] Add unit to cwnd label. --- plot_single_transmission_EM9190.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plot_single_transmission_EM9190.py b/plot_single_transmission_EM9190.py index f882d23..dcd7dda 100755 --- a/plot_single_transmission_EM9190.py +++ b/plot_single_transmission_EM9190.py @@ -308,7 +308,7 @@ if __name__ == "__main__": ax00.set_ylabel("LTE/NR RSRQ [dB]") # ax02.set_ylabel("LTE RSRQ [dB]") ax1.set_ylabel("sRTT [s]") - ax0.set_ylabel("cwnd") + ax0.set_ylabel("cwnd [MSS]") ax01.set_ylabel("Bandwidth [MHz]") if args.fancy: