On 06/12/2012 11:30 AM, Gustavo Goretkin wrote: > Hi, > > I'm using MPL 1.0.1 and am getting an unexpected result from using the > Path.intersects_path function. > > Here is the example: https://gist.github.com/2920237 > > There are three rectangles, two of which intersect. As such, I expect > some of the calls to intersects_path to return not 1.
The reason is that get_path() does not apply any transforms. In your example, try replacing f.get_path() with f.get_patch_transform().transform_path(f.get_path()) and similarly for s.get_path(). Eric > > Thanks, > Gustavo ------------------------------------------------------------------------------ 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