Fixes typo and and too large dataset.
This commit is contained in:
@@ -137,7 +137,7 @@ if __name__ == "__main__":
|
|||||||
transmission_df = pd.merge_asof(
|
transmission_df = pd.merge_asof(
|
||||||
transmission_df,
|
transmission_df,
|
||||||
serial_df,
|
serial_df,
|
||||||
tolerance=pd.Timedelta("1s"),
|
tolerance=pd.Timedelta("1ms"),
|
||||||
right_index=True,
|
right_index=True,
|
||||||
left_index=True,
|
left_index=True,
|
||||||
)
|
)
|
||||||
@@ -230,7 +230,14 @@ if __name__ == "__main__":
|
|||||||
+ transmission_df["LTE_SCC4_effective_bw"]
|
+ transmission_df["LTE_SCC4_effective_bw"]
|
||||||
+ transmission_df["LTE_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)
|
ax_stacked = transmission_df[bw_cols].plot.area(stacked=True, linewidth=0, ax=ax00)
|
||||||
ax00.set_ylabel("bandwidth [MHz]")
|
ax00.set_ylabel("bandwidth [MHz]")
|
||||||
@@ -270,9 +277,13 @@ if __name__ == "__main__":
|
|||||||
#labs_ax00 = ["5G bandwidth", "4G bandwidth"]
|
#labs_ax00 = ["5G bandwidth", "4G bandwidth"]
|
||||||
#ax00.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)
|
||||||
|
|
||||||
L = ax00.legend(ncols=2, fontsize=12, frameon=False)
|
L = ax00.legend(ncols=3, fontsize=9, frameon=False)
|
||||||
L.get_texts()[0].set_text("5G bandwidth")
|
L.get_texts()[0].set_text("5G main")
|
||||||
L.get_texts()[1].set_text("4G bandwidth")
|
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)
|
#ax00.set_zorder(100)
|
||||||
plt.savefig("{}{}_plot.eps".format(args.save, csv.replace(".csv", "")), bbox_inches="tight")
|
plt.savefig("{}{}_plot.eps".format(args.save, csv.replace(".csv", "")), bbox_inches="tight")
|
||||||
Reference in New Issue
Block a user