Skip to content
Browse files

added another pick demo

svn path=/trunk/matplotlib/; revision=3379
  • Loading branch information...
1 parent 598bdb3 commit 648b11790b8824323b5328dfb63e83c2cc6db1f5 @jdh2358 jdh2358 committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 examples/pick_event_demo2.py
View
4 examples/pick_event_demo2.py
@@ -17,7 +17,7 @@
line, = ax.plot(xs, ys, 'o', picker=5) # 5 points tolerance
-def onpick1(event):
+def onpick(event):
if event.artist!=line: return True
@@ -36,7 +36,7 @@ def onpick1(event):
show() # oops, we need a way to raise figures created in callbacks
return True
-fig.canvas.mpl_connect('pick_event', onpick1)
+fig.canvas.mpl_connect('pick_event', onpick)
show()

0 comments on commit 648b117

Please sign in to comment.
Something went wrong with that request. Please try again.