In [61]:
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
%matplotlib inline

In [64]:
import json
with open("/Users/esteele/tmp/iperf-out-120sec.json") as f:
    iperf_data = json.load(f)

bps_readings = [i["sum"]["bits_per_second"]/1000 for i in iperf_data["intervals"]]

In [70]:
s = pd.Series(bps_readings)
ax = s.plot(y="kbit/sec")
ax.set_ylabel("Throughput (kbit/sec)")
ax.set_xlabel("secs")


Out[70]:
<matplotlib.text.Text at 0x107836cf8>