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
Line2D.contains returns True for clicks just "beyond" the vertices of the Line2D, as long as they're not more than pickradius away from the vertex. On the contrary, LineCollection returns False for any click that's beyond the vertices.
In particular, this can make it difficult to click on "short" LineCollections.
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
Line2D.contains returns True for clicks just "beyond" the vertices of the Line2D, as long as they're not more than
pickradius
away from the vertex. On the contrary, LineCollection returns False for any click that's beyond the vertices.In particular, this can make it difficult to click on "short" LineCollections.
Code for reproduction
Actual outcome
Green points are considered as "contained".
Expected outcome
Same green points above and below, with round "caps" at the ends.
Matplotlib version
print(matplotlib.get_backend())
): anyThe text was updated successfully, but these errors were encountered: