From baf2207a4fc97505770af1941d3c984a2a3cd40c Mon Sep 17 00:00:00 2001 From: Lukas Prause Date: Wed, 12 Jul 2023 13:54:00 +0200 Subject: [PATCH] Fixes typo and and too large dataset. --- ...er.py => plot_single_transmission_paper.py | 21 ++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) rename plot_single_treansmission_paper.py => plot_single_transmission_paper.py (93%) diff --git a/plot_single_treansmission_paper.py b/plot_single_transmission_paper.py similarity index 93% rename from plot_single_treansmission_paper.py rename to plot_single_transmission_paper.py index 22311cb..d070367 100644 --- a/plot_single_treansmission_paper.py +++ b/plot_single_transmission_paper.py @@ -137,7 +137,7 @@ if __name__ == "__main__": transmission_df = pd.merge_asof( transmission_df, serial_df, - tolerance=pd.Timedelta("1s"), + tolerance=pd.Timedelta("1ms"), right_index=True, left_index=True, ) @@ -230,7 +230,14 @@ if __name__ == "__main__": + transmission_df["LTE_SCC4_effective_bw"] + transmission_df["LTE_bw"] ) - bw_cols = ["nr_effective_bw_sum", "lte_effective_bw_sum"] + bw_cols = [ + "SCC1_NR5G_effective_bw", + "LTE_bw", + "LTE_SCC1_effective_bw", + "LTE_SCC2_effective_bw", + "LTE_SCC3_effective_bw", + "LTE_SCC4_effective_bw", + ] ax_stacked = transmission_df[bw_cols].plot.area(stacked=True, linewidth=0, ax=ax00) ax00.set_ylabel("bandwidth [MHz]") @@ -270,9 +277,13 @@ if __name__ == "__main__": #labs_ax00 = ["5G bandwidth", "4G bandwidth"] #ax00.legend(lns_ax00, labs_ax00, ncols=3, fontsize=9, loc="upper center", frameon=legend_frame) - L = ax00.legend(ncols=2, fontsize=12, frameon=False) - L.get_texts()[0].set_text("5G bandwidth") - L.get_texts()[1].set_text("4G bandwidth") + L = ax00.legend(ncols=3, fontsize=9, 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") + L.get_texts()[3].set_text("4G SCC 2") + L.get_texts()[4].set_text("4G SCC 3") + L.get_texts()[5].set_text("4G SCC 4") #ax00.set_zorder(100) plt.savefig("{}{}_plot.eps".format(args.save, csv.replace(".csv", "")), bbox_inches="tight")