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
{{ message }}
Repository navigation
Line2D.contains does not take drawstyle into account. #6447
See joferkington/mpldatacursor#36.
Briefly, Line2D.contains currently assumes that points in the line are connected by straight segments, thus ignoring drawstyle. Minimal example (edited from the event handling doc):
I think the solution is to pass the array of actually drawn points into the path handling instead of the data points. The Line2D code is a bit hairy so I have not guess how hard that would actually be.
Activity
tacaswell commentedon May 19, 2016
I think the solution is to pass the array of actually drawn points into the path handling instead of the data points. The
Line2Dcode is a bit hairy so I have not guess how hard that would actually be.Line2D._path obeys drawstyle.