On Wed, Jul 21, 2010 at 2:11 PM, Aman Thakral <aman.thak...@gmail.com> 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 = event.xdata
> else:
>     x = self.prev[0]
>
> if not event.ydata is None:
>     y = event.ydata
> else:
>     y = self.prev[1]
>
> I know it's a bit verbose, but it works.

Hey Aman, thanks for the fix. Could you create an svn diff, as described at:

  http://matplotlib.sourceforge.net/faq/howto_faq.html#contributing-howto

JDH

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to