From 02d76c1c965404565fcaec6e9967261ca4099aff Mon Sep 17 00:00:00 2001 From: Langspielplatte Date: Sat, 14 Jan 2023 10:31:15 +0100 Subject: [PATCH] Bugfix, plot ack_rtt --- plot_transmission_timeline.py | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/plot_transmission_timeline.py b/plot_transmission_timeline.py index c7bf2ad..a375371 100755 --- a/plot_transmission_timeline.py +++ b/plot_transmission_timeline.py @@ -184,7 +184,7 @@ if __name__ == "__main__": plt.title("{} with {}".format(transmission_direction, cc_algo)) host = host_subplot(111, axes_class=axisartist.Axes) - host.plot() + #cmap = matplotlib.cm.get_cmap("Set3") #for c in transmission_df["cellID"].unique(): # bounds = transmission_df[["cellID"]].groupby("cellID").agg(["min", "max"]).loc[c] @@ -196,19 +196,19 @@ if __name__ == "__main__": # additional y axes par11 = host.twinx() par12 = host.twinx() - par13 = host.twinx() + # par13 = host.twinx() # axes offset par12.axis["right"] = par12.new_fixed_axis(loc="right", offset=(60, 0)) - par13.axis["right"] = par13.new_fixed_axis(loc="right", offset=(120, 0)) + # par13.axis["right"] = par13.new_fixed_axis(loc="right", offset=(120, 0)) par11.axis["right"].toggle(all=True) par12.axis["right"].toggle(all=True) - par13.axis["right"].toggle(all=True) + # par13.axis["right"].toggle(all=True) - #host.plot(transmission_df["goodput"], "-", color="blue", label="goodput") - #host.set_xlabel("datetime") - #host.set_ylabel("goodput [Mbps]") + host.plot(transmission_df["goodput"], "-", color="blue", label="goodput") + host.set_xlabel("datetime") + host.set_ylabel("goodput [Mbps]") par11.plot(transmission_df["downlink_cqi"], "--", color="green", label="CQI") par11.set_ylabel("CQI") @@ -216,12 +216,7 @@ if __name__ == "__main__": par12.plot(transmission_df["ack_rtt"], "-.", color="red", label="ACK RTT") par12.set_ylabel("ACK RTT [s]") - par12.set_ylim([0, 0.5]) - - par13.plot(transmission_df["goodput"], "-", color="blue", label="goodput") - par13.set_xlabel("datetime") - par13.set_ylabel("goodput [Mbps]") - + par12.set_ylim([0, 1]) if args.save: plt.savefig("{}timeline_plot.pdf".format(args.save))