Re: [Matplotlib-users] picking a broken_barh collection calls pick event twice

2008-06-25 Thread John Hunter
On Sun, Jun 22, 2008 at 3:18 AM, Paul Hartley [EMAIL PROTECTED] wrote: If I click on a bar that is part of a broken_barh collection which has its picker attribute enabled, there appears to be two events generated for example: def on_pick(self, event): print

[Matplotlib-users] picking a broken_barh collection calls pick event twice

2008-06-22 Thread Paul Hartley
If I click on a bar that is part of a broken_barh collection which has its picker attribute enabled, there appears to be two events generated for example: def on_pick(self, event): print event.mouseevent.xdata print event.mouseevent.ydata clicking on a bar will cause this

Re: [Matplotlib-users] picking a broken_barh collection calls pick event twice

2008-06-22 Thread Paul Hartley
My guess is that clicking on a collection causes a pick event to be returned by the collection itself and also perhaps by the barh member in the collection. No idea if that's the case, but just for the record, I figured out a simple enough workaround in which the pick handler is disconnected to