Re: [Matplotlib-users] LineBuilder

2010-02-14 Thread John Hunter
On Sun, Feb 14, 2010 at 3:34 PM, David Arnold wrote: > line, =ax.plot([0], [0]) > plt.show() > linebuilder=LineBuilder(line) > > However, if I put the plt.show() on the last line, it works. Can anyone > explain? plt.show is meant to raise all GUI windows and start the mainloop. For many user int

[Matplotlib-users] LineBuilder

2010-02-14 Thread David Arnold
All, I am curious why this doesn't work: # linebuilder.py import matplotlib.pyplot as plt class LineBuilder: def __init__(self, line): self.line=line self.xs=list(line.get_xdata()) self.ys=list(line.get_ydata()) self.cid=line.figure.canvas.mpl_connect('button