Bugfix
This commit is contained in:
@@ -66,7 +66,6 @@ if __name__ == "__main__":
|
||||
transmission_df = pd.read_csv(
|
||||
"{}{}".format(args.pcap_csv_folder, csv),
|
||||
dtype=dict(is_retranmission=bool, is_dup_ack=bool),
|
||||
converters={"UL_bandwidth": convert_bandwidth, "DL_bandwidth": convert_bandwidth},
|
||||
)
|
||||
|
||||
transmission_df["datetime"] = pd.to_datetime(transmission_df["datetime"]) - pd.Timedelta(hours=1)
|
||||
@@ -96,7 +95,9 @@ if __name__ == "__main__":
|
||||
#transmission_df = transmission_df.filter(["goodput", "datetime", "ack_rtt", "goodput_rolling", "snd_cwnd"])
|
||||
|
||||
# read serial csv
|
||||
serial_df = pd.read_csv(args.serial_file)
|
||||
serial_df = pd.read_csv(args.serial_file,
|
||||
converters={"UL_bandwidth": convert_bandwidth, "DL_bandwidth": convert_bandwidth},
|
||||
)
|
||||
serial_df["datetime"] = pd.to_datetime(serial_df["datetime"]) - pd.Timedelta(hours=1)
|
||||
serial_df = serial_df.set_index("datetime")
|
||||
serial_df.index = pd.to_datetime(serial_df.index)
|
||||
@@ -176,12 +177,14 @@ if __name__ == "__main__":
|
||||
twin1.yaxis.label.set_color(p2.get_color())
|
||||
twin2.yaxis.label.set_color(p3.get_color())
|
||||
twin3.yaxis.label.set_color(p4.get_color())
|
||||
twin4.yaxis.label.set_color(p5.get_color())
|
||||
|
||||
tkw = dict(size=4, width=1.5)
|
||||
ax.tick_params(axis='y', colors=p1.get_color(), **tkw)
|
||||
twin1.tick_params(axis='y', colors=p2.get_color(), **tkw)
|
||||
twin2.tick_params(axis='y', colors=p3.get_color(), **tkw)
|
||||
twin3.tick_params(axis='y', colors=p4.get_color(), **tkw)
|
||||
twin4.tick_params(axis='y', colors=p5.get_color(), **tkw)
|
||||
ax.tick_params(axis='x', **tkw)
|
||||
|
||||
#ax.legend(handles=[p1, p2, p3])
|
||||
|
||||
Reference in New Issue
Block a user