@@ -1016,17 +1016,6 @@ def set_foreground(self, fg, isRGBA=False):
10161016 else :
10171017 self ._rgb = colors .to_rgba (fg )
10181018
1019- def set_graylevel (self , frac ):
1020- """
1021- Set the foreground color to be a gray level with *frac*
1022- """
1023- # When removing, remember to remove all overrides in subclasses.
1024- msg = ("set_graylevel is deprecated for removal in 1.6; "
1025- "you can achieve the same result by using "
1026- "set_foreground((frac, frac, frac))" )
1027- warnings .warn (msg , mplDeprecation )
1028- self ._rgb = (frac , frac , frac , self ._alpha )
1029-
10301019 def set_joinstyle (self , js ):
10311020 """
10321021 Set the join style to be one of ('miter', 'round', 'bevel')
@@ -1727,53 +1716,6 @@ def onRemove(self, ev):
17271716 break
17281717 h = parent
17291718
1730- def onHilite (self , ev ):
1731- """
1732- Mouse event processor which highlights the artists
1733- under the cursor. Connect this to the 'motion_notify_event'
1734- using::
1735-
1736- canvas.mpl_connect('motion_notify_event',canvas.onHilite)
1737- """
1738- msg = ("onHilite has been deprecated in 1.5 and will be removed "
1739- "in 1.6. This function has not been used internally by mpl "
1740- "since 2007." )
1741- warnings .warn (msg , mplDeprecation )
1742- if not hasattr (self , '_active' ):
1743- self ._active = dict ()
1744-
1745- under = self .figure .hitlist (ev )
1746- enter = [a for a in under if a not in self ._active ]
1747- leave = [a for a in self ._active if a not in under ]
1748- # On leave restore the captured colour
1749- for a in leave :
1750- if hasattr (a , 'get_color' ):
1751- a .set_color (self ._active [a ])
1752- elif hasattr (a , 'get_edgecolor' ):
1753- a .set_edgecolor (self ._active [a ][0 ])
1754- a .set_facecolor (self ._active [a ][1 ])
1755- del self ._active [a ]
1756- # On enter, capture the color and repaint the artist
1757- # with the highlight colour. Capturing colour has to
1758- # be done first in case the parent recolouring affects
1759- # the child.
1760- for a in enter :
1761- if hasattr (a , 'get_color' ):
1762- self ._active [a ] = a .get_color ()
1763- elif hasattr (a , 'get_edgecolor' ):
1764- self ._active [a ] = (a .get_edgecolor (), a .get_facecolor ())
1765- else :
1766- self ._active [a ] = None
1767- for a in enter :
1768- if hasattr (a , 'get_color' ):
1769- a .set_color ('red' )
1770- elif hasattr (a , 'get_edgecolor' ):
1771- a .set_edgecolor ('red' )
1772- a .set_facecolor ('lightblue' )
1773- else :
1774- self ._active [a ] = None
1775- self .draw_idle ()
1776-
17771719 def pick (self , mouseevent ):
17781720 if not self .widgetlock .locked ():
17791721 self .figure .pick (mouseevent )
0 commit comments