Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3b35f5a

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

File tree

Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed

‎lib/matplotlib/lines.py

Copy file name to clipboardExpand all lines: lib/matplotlib/lines.py
+1-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.