You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!
Bug report
Bug summary
When the pickradius of a LineCollection is set to a <=0 value, LineCollection.contains treats the polygon as "closed".
Code for reproduction
Actual outcome
Note how on the top LineCollection (using pickradius=0), all points "in" the closed polygon are considered "contained".
Expected outcome
Only points exactly on the LineCollection are contained for pickradius = 0, no points are contained for pickradius < 0 (consistently with Line2D).
The relevant code is in Line2D.contains:
Matplotlib version
print(matplotlib.get_backend())
): anyThe text was updated successfully, but these errors were encountered: