Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 563129c

Browse files
committed
Merge pull request matplotlib#4778 from tacaswell/fix_color_regression
FIX: remove equality check in line2D.set_color
2 parents 4dfcbf0 + 3b35f5a commit 563129c

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)