8000 Robustness and functionality for `color=None`. · matplotlib/matplotlib@24d74b9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 24d74b9

Browse files
committed
Robustness and functionality for color=None.
1 parent b7aceb4 commit 24d74b9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,9 @@ 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+
kwargs = kwargs.copy()
235236
if kw.get('color',None) is None and kwargs.get('color',None) is None:
236-
kw['color'] = six.next(self.color_cycle)
237+
kwargs['color'] = kw['color'] = six.next(self.color_cycle)
237238
# (can't use setdefault because it always evaluates
238239
# its second argument)
239240
seg = mlines.Line2D(x, y,

0 commit comments

Comments
 (0)
0