Skip to content

Commit b7aceb4

Browse files
committed
Allow color=None to be passed to plotting functions.
1 parent 6c11718 commit b7aceb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def _xy_from_xy(self, x, y):
232232

233233
def _makeline(self, x, y, kw, kwargs):
234234
kw = kw.copy() # Don't modify the original kw.
235-
if 'color' not in kw and 'color' not in kwargs:
235+
if kw.get('color',None) is None and kwargs.get('color',None) is None:
236236
kw['color'] = six.next(self.color_cycle)
237237
# (can't use setdefault because it always evaluates
238238
# its second argument)

0 commit comments

Comments
 (0)