import matplotlib.pyplot as plt
import sys

ping_id = []
rtt = []

with open('ping_1-2.out', 'r') as f:
    for idx, line in enumerate(f):
        #print idx, line
        ping_id.append(idx)
        rtt.append(float(line.strip('\n')))

plt.title("Learning MAC controller: PING between H1 and H2")
plt.xlabel("ICMP packet ID")
plt.ylabel("RTT time")

axes = plt.gca()
axes.set_ylim([0, 100])

plt.plot(ping_id, rtt)
plt.savefig("lc_ping-h1-h2.png")

plt.clf()

ping_id = []
rtt = []

################################

with open('ping_1-5.out', 'r') as f:
    for idx, line in enumerate(f):
        #print idx, line
        ping_id.append(idx)
        rtt.append(float(line.strip('\n')))

plt.title("Learning MAC controller: PING between H1 and H5")
plt.xlabel("ICMP packet ID")
plt.ylabel("RTT time")

axes = plt.gca()
axes.set_ylim([0, 100])

plt.plot(ping_id, rtt)
plt.savefig("lc_ping-h1-h5.png")

###############################

plt.clf()

ping_id = []
rtt = []

with open('ping_1-4.out', 'r') as f:
    for idx, line in enumerate(f):
        #print idx, line
        ping_id.append(idx)
        rtt.append(float(line.strip('\n')))

plt.title("Learning MAC controller: PING between H1 and H4")
plt.xlabel("ICMP packet ID")
plt.ylabel("RTT time")

axes = plt.gca()
axes.set_ylim([0, 100])

plt.plot(ping_id, rtt)
plt.savefig("lc_ping-h1-h4.png")

71476d9c69f30939a8b80d06f1c03bf6e06c89d4
<mask token>

<mask token>
with open('ping_1-2.out', 'r') as f:
    for idx, line in enumerate(f):
        ping_id.append(idx)
        rtt.append(float(line.strip('\n')))
plt.title('Learning MAC controller: PING between H1 and H2')
plt.xlabel('ICMP packet ID')
plt.ylabel('RTT time')
<mask token>
axes.set_ylim([0, 100])
plt.plot(ping_id, rtt)
plt.savefig('lc_ping-h1-h2.png')
plt.clf()
<mask token>
with open('ping_1-5.out', 'r') as f:
    for idx, line in enumerate(f):
        ping_id.append(idx)
        rtt.append(float(line.strip('\n')))
plt.title('Learning MAC controller: PING between H1 and H5')
plt.xlabel('ICMP packet ID')
plt.ylabel('RTT time')
<mask token>
axes.set_ylim([0, 100])
plt.plot(ping_id, rtt)
plt.savefig('lc_ping-h1-h5.png')
plt.clf()
<mask token>
with open('ping_1-4.out', 'r') as f:
    for idx, line in enumerate(f):
        ping_id.append(idx)
        rtt.append(float(line.strip('\n')))
plt.title('Learning MAC controller: PING between H1 and H4')
plt.xlabel('ICMP packet ID')
plt.ylabel('RTT time')
<mask token>
axes.set_ylim([0, 100])
plt.plot(ping_id, rtt)
plt.savefig('lc_ping-h1-h4.png')

<mask token>
ping_id = []
rtt = []
with open('ping_1-2.out', 'r') as f:
    for idx, line in enumerate(f):
        ping_id.append(idx)
        rtt.append(float(line.strip('\n')))
plt.title('Learning MAC controller: PING between H1 and H2')
plt.xlabel('ICMP packet ID')
plt.ylabel('RTT time')
axes = plt.gca()
axes.set_ylim([0, 100])
plt.plot(ping_id, rtt)
plt.savefig('lc_ping-h1-h2.png')
plt.clf()
ping_id = []
rtt = []
with open('ping_1-5.out', 'r') as f:
    for idx, line in enumerate(f):
        ping_id.append(idx)
        rtt.append(float(line.strip('\n')))
plt.title('Learning MAC controller: PING between H1 and H5')
plt.xlabel('ICMP packet ID')
plt.ylabel('RTT time')
axes = plt.gca()
axes.set_ylim([0, 100])
plt.plot(ping_id, rtt)
plt.savefig('lc_ping-h1-h5.png')
plt.clf()
ping_id = []
rtt = []
with open('ping_1-4.out', 'r') as f:
    for idx, line in enumerate(f):
        ping_id.append(idx)
        rtt.append(float(line.strip('\n')))
plt.title('Learning MAC controller: PING between H1 and H4')
plt.xlabel('ICMP packet ID')
plt.ylabel('RTT time')
axes = plt.gca()
axes.set_ylim([0, 100])
plt.plot(ping_id, rtt)
plt.savefig('lc_ping-h1-h4.png')

import matplotlib.pyplot as plt
import sys
ping_id = []
rtt = []
with open('ping_1-2.out', 'r') as f:
    for idx, line in enumerate(f):
        ping_id.append(idx)
        rtt.append(float(line.strip('\n')))
plt.title('Learning MAC controller: PING between H1 and H2')
plt.xlabel('ICMP packet ID')
plt.ylabel('RTT time')
axes = plt.gca()
axes.set_ylim([0, 100])
plt.plot(ping_id, rtt)
plt.savefig('lc_ping-h1-h2.png')
plt.clf()
ping_id = []
rtt = []
with open('ping_1-5.out', 'r') as f:
    for idx, line in enumerate(f):
        ping_id.append(idx)
        rtt.append(float(line.strip('\n')))
plt.title('Learning MAC controller: PING between H1 and H5')
plt.xlabel('ICMP packet ID')
plt.ylabel('RTT time')
axes = plt.gca()
axes.set_ylim([0, 100])
plt.plot(ping_id, rtt)
plt.savefig('lc_ping-h1-h5.png')
plt.clf()
ping_id = []
rtt = []
with open('ping_1-4.out', 'r') as f:
    for idx, line in enumerate(f):
        ping_id.append(idx)
        rtt.append(float(line.strip('\n')))
plt.title('Learning MAC controller: PING between H1 and H4')
plt.xlabel('ICMP packet ID')
plt.ylabel('RTT time')
axes = plt.gca()
axes.set_ylim([0, 100])
plt.plot(ping_id, rtt)
plt.savefig('lc_ping-h1-h4.png')

import matplotlib.pyplot as plt
import sys

ping_id = []
rtt = []

with open('ping_1-2.out', 'r') as f:
    for idx, line in enumerate(f):
        #print idx, line
        ping_id.append(idx)
        rtt.append(float(line.strip('\n')))

plt.title("Learning MAC controller: PING between H1 and H2")
plt.xlabel("ICMP packet ID")
plt.ylabel("RTT time")

axes = plt.gca()
axes.set_ylim([0, 100])

plt.plot(ping_id, rtt)
plt.savefig("lc_ping-h1-h2.png")

plt.clf()

ping_id = []
rtt = []

################################

with open('ping_1-5.out', 'r') as f:
    for idx, line in enumerate(f):
        #print idx, line
        ping_id.append(idx)
        rtt.append(float(line.strip('\n')))

plt.title("Learning MAC controller: PING between H1 and H5")
plt.xlabel("ICMP packet ID")
plt.ylabel("RTT time")

axes = plt.gca()
axes.set_ylim([0, 100])

plt.plot(ping_id, rtt)
plt.savefig("lc_ping-h1-h5.png")

###############################

plt.clf()

ping_id = []
rtt = []

with open('ping_1-4.out', 'r') as f:
    for idx, line in enumerate(f):
        #print idx, line
        ping_id.append(idx)
        rtt.append(float(line.strip('\n')))

plt.title("Learning MAC controller: PING between H1 and H4")
plt.xlabel("ICMP packet ID")
plt.ylabel("RTT time")

axes = plt.gca()
axes.set_ylim([0, 100])

plt.plot(ping_id, rtt)
plt.savefig("lc_ping-h1-h4.png")
