Re: [Matplotlib-users] Potential Bug with SpanSelector

2010-07-21 Thread Eric Firing
On 07/21/2010 09:11 AM, Aman Thakral wrote: > Ok, so I've fixed it. Its just because the mouse goes outside the axes. > How do I make the change in the code? > > Error: line 924 in widgets.py > > old code: > > x,y = event.xdata, event.ydata > > fixed code: > > if not event.xdata is None: > x =

Re: [Matplotlib-users] Potential Bug with SpanSelector

2010-07-21 Thread John Hunter
On Wed, Jul 21, 2010 at 2:11 PM, Aman Thakral wrote: > Ok, so I've fixed it. Its just because the mouse goes outside the axes.  How > do I make the change in the code? > > Error: line 924 in widgets.py > > old code: > > x,y = event.xdata, event.ydata > > fixed code: > > if not event.xdata is None:

Re: [Matplotlib-users] Potential Bug with SpanSelector

2010-07-21 Thread Aman Thakral
Ok, so I've fixed it. Its just because the mouse goes outside the axes. How do I make the change in the code? Error: line 924 in widgets.py old code: x,y = event.xdata, event.ydata fixed code: if not event.xdata is None: x = event.xdata else: x = self.prev[0] if not event.ydata is No

Re: [Matplotlib-users] Potential Bug with SpanSelector

2010-07-21 Thread Aman Thakral
Update on the error. It occurs in the following cases: - User clicks and drags from left to right and approaches the edge of the right side of the axes - User clicks and drags from right to left and approaches the edge of the left side of the axes I'm working on this bug now, I'll see if I can fi