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
Don't warn in Collections.contains if picker is not numlike.
Otherwise, a warning is raised in the simple example:
from pylab import *
def pick_test(artist, mouseevent):
return coll.contains(mouseevent)
coll = plt.scatter([0, 1], [0, 1], picker=pick_test)
plt.show()
(Click anywhere in the figure to trigger the warning.)
The use of `is_numlike` matches the implementation of `Line2D.contains`.
Initially noted while using mpldatacursor.
0 commit comments