Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # RTT with drop rate :
- import matplotlib.pyplot as plt; plt.rcdefaults()
- import numpy as np
- import matplotlib.pyplot as plt
- #graph_type="TotalTOverheadTime"
- #graph_type="Rtt"
- graph_type="BW"
- def setGraph():
- pathToGit = "/home/vikas"
- path = pathToGit + "/git/739_A1/part2/results/opt/diff_mach"
- fileBW = path + "/60000_Drop.log"
- f=open(fileBW, 'r')
- bw=[]
- for line in f:
- bw.append(float(line) / 1000 )
- plt.plot(bw, marker='x')
- plt.ylabel('Rtt time (ms)')
- plt.xlabel('Number of packets')
- outFile="Rtt.png"
- plt.savefig( outFile )
- plt.show()
- def main():
- setGraph()
- if __name__ == '__main__':
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement