소스 검색

Bugfix, plot ack_rtt

master
langspielplatte 2 년 전
부모
커밋
c66c6e9ad2
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. +3
    -2
      plot_transmission_timeline.py

+ 3
- 2
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]
@@ -216,12 +216,13 @@ if __name__ == "__main__":

par12.plot(transmission_df["ack_rtt"], "-.", color="red", label="ACK RTT")
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.set_xlabel("datetime")
par13.set_ylabel("goodput [Mbps]")


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

Loading…
취소
저장