Skip to content

Instantly share code, notes, and snippets.

from pylab import *
def generate_lines():
f = open("test.dat", 'r')
EOF = False
[x, y, z] = [float(n) for n in f.next().split()] # read in the first row
while not EOF:
stab = (z < 0.0)
xs = [x]
ys = [y]