瀏覽代碼

Bugfix, plot ack_rtt

master
langspielplatte 2 年之前
父節點
當前提交
c66c6e9ad2
共有 1 個檔案被更改,包括 3 行新增2 行删除
  1. +3
    -2
      plot_transmission_timeline.py

+ 3
- 2
plot_transmission_timeline.py 查看文件

plt.title("{} with {}".format(transmission_direction, cc_algo)) plt.title("{} with {}".format(transmission_direction, cc_algo))


host = host_subplot(111, axes_class=axisartist.Axes) host = host_subplot(111, axes_class=axisartist.Axes)
host.plot()
#cmap = matplotlib.cm.get_cmap("Set3") #cmap = matplotlib.cm.get_cmap("Set3")
#for c in transmission_df["cellID"].unique(): #for c in transmission_df["cellID"].unique():
# bounds = transmission_df[["cellID"]].groupby("cellID").agg(["min", "max"]).loc[c] # bounds = transmission_df[["cellID"]].groupby("cellID").agg(["min", "max"]).loc[c]


par12.plot(transmission_df["ack_rtt"], "-.", color="red", label="ACK RTT") par12.plot(transmission_df["ack_rtt"], "-.", color="red", label="ACK RTT")
par12.set_ylabel("ACK RTT [s]") par12.set_ylabel("ACK RTT [s]")
par12.set_ylim([0, 1])
par12.set_ylim([0, t])


par13.plot(transmission_df["goodput"], "-", color="blue", label="goodput") par13.plot(transmission_df["goodput"], "-", color="blue", label="goodput")
par13.set_xlabel("datetime") par13.set_xlabel("datetime")
par13.set_ylabel("goodput [Mbps]") par13.set_ylabel("goodput [Mbps]")



if args.save: if args.save:
plt.savefig("{}timeline_plot.pdf".format(args.save)) plt.savefig("{}timeline_plot.pdf".format(args.save))
else: else:

Loading…
取消
儲存