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

Skip to content

Commit 87e8ea6

Browse files
committed
Skip validation if color is 'auto'
1 parent f221944 commit 87e8ea6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/lines.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1040,7 +1040,7 @@ def set_color(self, color):
10401040
----------
10411041
color : color
10421042
"""
1043-
if not is_color_like(color):
1043+
if not is_color_like(color) and color != 'auto':
10441044
cbook._check_in_list(get_named_colors_mapping(),
10451045
_print_supported_values=False, color=color)
10461046
self._color = color

0 commit comments

Comments
 (0)