i'd like to plot some data, get user input, and then plot the original data and user input. when i try to show() the data i get a segfault after about ten seconds.
any clue what i'm doing wrong? using mac os x 10.5 with enthought distribution.
thanks,
drs
#!/usr/bin/env python
import pylab
x = pylab.arange(0,10,0.1)
y = pylab.sin(x)
# plot and get user input, then close fig
pylab.plot(x,y)
points = pylab.ginput(2)
points = pylab.array(points)
pylab.close()
# replot with chosen points
pylab.plot(x,y)
pylab.plot(points[:,0],points[:,1],'ko')
pylab.show()
# wait for it, wait for it...now segfault