FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add add_click and pop_click methods in BlockingContourLabeler. · feisuo/matplotlib@5fafc61 · GitHub

Repository navigation

Commit 5fafc61

Browse files
committed
Add add_click and pop_click methods in BlockingContourLabeler.
svn path=/trunk/matplotlib/; revision=8078
1 parent 81d545f commit 5fafc61

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

‎CHANGELOG‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2009-01-11 Add add_click and pop_click methods in
2+
BlockingContourLabeler. -JJL
3+
14
2010-01-03 Added rcParams['axes.color_cycle'] - EF
25

36
2010-01-03 Added Pierre's qt4 formlayout editor and toolbar button - JDH

‎lib/matplotlib/blocking_input.py‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def mouse_event_stop( self, event ):
193193
# consistent with matlab and sometimes quite useful, but will
194194
# require the user to test how many points were actually
195195
# returned before using data.
196-
self.fig.canvas.stop_event_loop(event)
196+
self.fig.canvas.stop_event_loop()
197197

198198
def mouse_event_pop( self, event ):
199199
"""
@@ -311,6 +311,12 @@ def __init__(self,cs):
311311
self.cs = cs
312312
BlockingMouseInput.__init__(self, fig=cs.ax.figure )
313313

314+
def add_click(self, event):
315+
self.button1(event)
316+
317+
def pop_click(self, event, index=-1):
318+
self.button3(event)
319+
314320
def button1(self,event):
315321
"""
316322
This will be called if an event involving a button other than

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL