Hmm, I just found out that if I change path.Path.contains_point to use
"point_on_path" instead of "point_in_path", the containment tests work
properly.  I'm not that familiar with the path code...is the difference
that one is testing for polygonal insideness, and one is testing for
literally being on the "stroke"?  If so, do we have to make sure that the
proper one is called if there are no polygons involved in the path?

On Mon, Aug 20, 2012 at 9:28 PM, Daniel Hyams <dhy...@gmail.com> wrote:

> I've run into a strange problem with contains() on an arrow; there is a
> large area to the left of the arrow that insists that it is contained
> within the arrow.  Small runnable sample attached.
>
> I've looked at the path for the arrow, and it looks fine to me.  I even
> went so far as to hack a STOP onto the end of the path, but that resulted
> in the same behavior.
>
> Can anyone else confirm this behavior?  matplotlib 1.1.1 is what I'm
> using.  Seen on both Windows, Linux, and OSX.
>
> --
> Daniel Hyams
> dhy...@gmail.com
>



-- 
Daniel Hyams
dhy...@gmail.com
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to