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 c45ea65

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

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
@@ -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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.