plot_iter.py 265 Bytes
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
import matplotlib.pyplot as plt
import sys

time = []
load = []
ifile = open(sys.argv[1],'rb')
lines = ifile.readlines()
for row in lines:
rowSplit = row.split('\t')
time.append(rowSplit[0])
load.append(rowSplit[1])
ifile.close()
plt.plot(time, load)
plt.show()