In [2]:
import matplotlib.pyplot as plt
%matplotlib inline

In [3]:
fin = open("output/edgevar/edge20", 'r')
ID = "344"
xs, ys, ths = [], [], []
for l in fin.readlines():
    if l=="\n": continue
    spt = l.split()
    if spt[0] == ID:
        xs.append(float(spt[2]))
        ys.append(float(spt[3]))
        ths.append(float(spt[4]))

In [4]:
plt.plot(xs)


Out[4]:
[<matplotlib.lines.Line2D at 0x7f5c07e24c10>]