| @@ -99,15 +99,6 @@ if __name__ == "__main__": | |||
| serial_df["Cell_ID"] = serial_df["Cell_ID"].apply( | |||
| lambda x: int(x.split(" ")[-1].replace("(", "").replace(")", ""))) | |||
| # sum bandwidth | |||
| # columns: LTE_bw, LTE_SCC2_bw, LTE_SCC3_bw, LTE_SCC4_bw, SCC1_NR5G_bw, NR5G_dl_bw, NR5G_ul_bw, LTE_SCC1_bw, NR5G_bw | |||
| serial_df["bw_sum"] = serial_df["LTE_bw"].dropna() + serial_df["LTE_SCC2_bw"].dropna() \ | |||
| + serial_df["LTE_SCC3_bw"].dropna() + serial_df["LTE_SCC4_bw"].dropna() \ | |||
| + serial_df["SCC1_NR5G_bw"].dropna() + serial_df["NR5G_dl_bw"].dropna() \ | |||
| + serial_df["LTE_SCC1_bw"].dropna() | |||
| #serial_df["bw_sum"] = serial_df["bw_sum"].apply(lambda x: int(x)) | |||
| print(serial_df["bw_sum"]) | |||
| transmission_df = pd.merge_asof( | |||
| transmission_df, | |||
| serial_df, | |||
| @@ -133,7 +124,6 @@ if __name__ == "__main__": | |||
| ax00 = ax[1] | |||
| ax01 = ax00.twinx() | |||
| ax02 = ax00.twinx() | |||
| ax02.spines.right.set_position(("axes", 1.10)) | |||
| # Plot vertical lines | |||
| first = True | |||
| @@ -161,17 +151,18 @@ if __name__ == "__main__": | |||
| ax1.plot(transmission_df["srtt"].dropna(), color="red", linestyle="dashdot", label="sRTT") | |||
| ax2.plot(transmission_df["goodput_rolling"], color="blue", linestyle="solid", label="goodput") | |||
| ax00.plot(transmission_df["NR5G_RSRQ_(dB)"].dropna(), color="magenta", linestyle="dotted", label="NR RSRQ") | |||
| ax01.plot(transmission_df["bw_sum"].dropna(), color="peru", linestyle="dotted", label="bandwidth") | |||
| ax01.plot(transmission_df["bw_sum"].dropna(), color="peru", linestyle="solid", label="bandwidth") | |||
| ax02.plot(transmission_df["RSRQ_(dB)"].dropna(), color="purple", linestyle="dotted", label="LTE RSRQ") | |||
| ax2.spines.right.set_position(("axes", 1.1)) | |||
| ax02.spines.right.set_position(("axes", 1.1)) | |||
| ax0.set_ylim(0, 5000) | |||
| ax1.set_ylim(0, 0.3) | |||
| ax2.set_ylim(0, 500) | |||
| ax00.set_ylim(-25, -5) | |||
| ax00.set_ylim(-25, 0) | |||
| ax01.set_ylim(0, 400) | |||
| ax02.set_ylim(-25, -5) | |||
| ax02.set_ylim(-25, 0) | |||
| ax00.set_xlabel("arrival time [s]") | |||