Skip to content

Commit 3b35f5a

Browse files
committed
FIX: remove equality check in line2D.set_color
Fixes problem identified in matplotlib#4771
1 parent 0d53ff5 commit 3b35f5a

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
@@ -932,9 +932,8 @@ def set_color(self, color):
932932
933933
ACCEPTS: any matplotlib color
934934
"""
935-
if color != self._color:
936-
self.stale = True
937935
self._color = color
936+
self.stale = True
938937

939938
def set_drawstyle(self, drawstyle):
940939
"""

0 commit comments

Comments
 (0)