@@ -1678,12 +1678,6 @@ def __init__(self, figure):
1678
1678
self .mouse_grabber = None # the axes currently grabbing mouse
1679
1679
self .toolbar = None # NavigationToolbar2 will set me
1680
1680
self ._is_saving = False
1681
- if False :
1682
- ## highlight the artists that are hit
1683
- self .mpl_connect ('motion_notify_event' , self .onHilite )
1684
- ## delete the artists that are clicked on
1685
- #self.mpl_disconnect(self.button_pick_id)
1686
- #self.mpl_connect('button_press_event',self.onRemove)
1687
1681
1688
1682
def is_saving (self ):
1689
1683
"""
@@ -1734,15 +1728,16 @@ def onHilite(self, ev):
1734
1728
1735
1729
canvas.mpl_connect('motion_notify_event',canvas.onHilite)
1736
1730
"""
1731
+ msg = ("onHilite has been deprecated in 1.5 and will be removed "
1732
+ "in 1.6. This function has not been used internally by mpl "
1733
+ "since 2007." )
1734
+ warnings .warn (msg , mplDeprecation )
1737
1735
if not hasattr (self , '_active' ):
1738
1736
self ._active = dict ()
1739
1737
1740
1738
under = self .figure .hitlist (ev )
1741
1739
enter = [a for a in under if a not in self ._active ]
1742
1740
leave = [a for a in self ._active if a not in under ]
1743
- #print "within:"," ".join([str(x) for x in under])
1744
- #print "entering:",[str(a) for a in enter]
1745
- #print "leaving:",[str(a) for a in leave]
1746
1741
# On leave restore the captured colour
1747
1742
for a in leave :
1748
1743
if hasattr (a , 'get_color' ):
0 commit comments