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 16
16
import numpy as np
17
17
18
18
import matplotlib as mpl
19
- from . import cbook , ticker
19
+ from . import cbook , colors , ticker
20
20
from .lines import Line2D
21
21
from .patches import Circle , Rectangle , Ellipse
22
22
from .transforms import blended_transform_factory
@@ -211,7 +211,7 @@ def _motion(self, event):
211
211
if self .ignore (event ):
212
212
return
213
213
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 () ):
215
215
self .ax .set_facecolor (c )
216
216
if self .drawon :
217
217
self .ax .figure .canvas .draw ()
@@ -908,7 +908,7 @@ def _motion(self, event):
908
908
if self .ignore (event ):
909
909
return
910
910
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 () ):
912
912
self .ax .set_facecolor (c )
913
913
if self .drawon :
914
914
self .ax .figure .canvas .draw ()
You can’t perform that action at this time.
0 commit comments