Skip to content

Commit c45ea65

Browse files
tacaswellAmyTeegarden
authored andcommitted
FIX: remove equality check in line2D.set_color
Fixes problem identified in #4771
1 parent 9ba2c31 commit c45ea65

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/matplotlib/lines.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -934,9 +934,8 @@ def set_color(self, color):
934934
935935
ACCEPTS: any matplotlib color
936936
"""
937-
if color != self._color:
938-
self.stale = True
939937
self._color = color
938+
self.stale = True
940939

941940
def set_drawstyle(self, drawstyle):
942941
"""

0 commit comments

Comments
 (0)