Re: [Matplotlib-users] finding the bounding box of an arbitrary artist

2013-01-01 Thread Daniel Hyams
No, I didn't... I believe that in this specific case, I just manually drew a decently sized box around the axis spine and implemented my own contains method to match. It would be nice for every artist to be consistent in this area though. Maybe a MEP is in order to make every artist have a

Re: [Matplotlib-users] finding the bounding box of an arbitrary artist

2012-12-29 Thread Michael McNeil Forbes
On 7 Oct 2011, at 4:56 PM, Daniel Hyams wrote: I'm wanting to highlight the artist under the cursor with a transparent Rectangle patch. To do this, I have very, roughly, in a mouse motion handler, under = self.figure.hitlist(ev) if under: artist = under[0] bbox =

[Matplotlib-users] finding the bounding box of an arbitrary artist

2011-10-07 Thread Daniel Hyams
I'm wanting to highlight the artist under the cursor with a transparent Rectangle patch. To do this, I have very, roughly, in a mouse motion handler, under = self.figure.hitlist(ev) if under: artist = under[0] bbox = artist.get_window_extent() highlight =