Browse Source

Fixes typo and and too large dataset.

master
Lukas Prause 2 years ago
parent
commit
baf2207a4f
1 changed files with 16 additions and 5 deletions
  1. +16
    -5
      plot_single_transmission_paper.py

plot_single_treansmission_paper.py → plot_single_transmission_paper.py View File

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,
) )
+ 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]")
#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.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) #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")

Loading…
Cancel
Save