File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1616import numpy as np
1717
1818import matplotlib as mpl
19- from . import cbook , ticker
19+ from . import cbook , colors , ticker
2020from .lines import Line2D
2121from .patches import Circle , Rectangle , Ellipse
2222from .transforms import blended_transform_factory
@@ -211,7 +211,7 @@ def _motion(self, event):
211211 if self .ignore (event ):
212212 return
213213 c = self .hovercolor if event .inaxes == self .ax else self .color
214- if c != self .ax .get_facecolor ():
214+ if not colors . same_color ( c , self .ax .get_facecolor () ):
215215 self .ax .set_facecolor (c )
216216 if self .drawon :
217217 self .ax .figure .canvas .draw ()
@@ -908,7 +9
6772
08,7 @@ def _motion(self, event):
908908 if self .ignore (event ):
909909 return
910910 c = self .hovercolor if event .inaxes == self .ax else self .color
911- if c != self .ax .get_facecolor ():
911+ if not colors . same_color ( c , self .ax .get_facecolor () ):
912912 self .ax .set_facecolor (c )
913913 if self .drawon :
914914 self .ax .figure .canvas .draw ()
You can’t perform that action at this time.
0 commit comments