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

[Matplotlib-users] Potential Bug with SpanSelector

2010-07-21 Thread Aman Thakral
Hi all, I'm getting the following exception when I use the Span Selector. It happens when I try and select the entire region. Exception in Tkinter callback Traceback (most recent call last): File "C:\Python26\lib\lib-tk\Tkinter.py", line 1410, in __call__ return self.func(*args) File "C