Issue detecting paths intersection with Path.intersects_path #6076
Labels
status: closed as inactive
Issues closed by the "Stale" Github Action. Please comment on any you think should still be open.
status: inactive
Marked by the “Stale” Github Action
topic: path handling
Milestone
Short Description
I think there may be a bug in the
Path.intersects_path
method, inpath
module:Playing with it, I encountered some cases where this method answers that the two paths are not intersecting, while after plotting them, they do (see the example script and picture below). I still didn't have time to look into further (especially the C++ code that is wrapped by the method), but it seems to me that this behavior is not correct, is it?
Details
Matplotlib 1.5.1, with Python 2.7.11 (and IPython 4.0.1), on Linux (CentOS 7 or Manjaro)
Anaconda 2.4.0 (64-bit)
that demonstrates the issue i.e a small piece of code which reproduces the issue
and can be run with out any other (or as few as possible) external dependencies.
The paths are plotted in solid lines, and the vertices (control points) of the paths are plotted with markers (with thin dashed lines between them, and of the same color as the path they correspond to).
path_1.intersects_path(path_2)
, while from the plot they seem to be intersecting…path_1.intersects_path(path_2)
, which seems correct from the plot…The only difference between the two red and green paths is their last control point (on the right), which is a bit lower in the right panel case than in the left panel case.
note where it used to work.
Never used
Path.intersects_path
method before, so I can't tell if it's a regression.The text was updated successfully, but these errors were encountered: