Skip to content

Commit 92f78b7

Browse files
BUG: addresses #14855 by fixing color kwarg conflict
1 parent 14e4815 commit 92f78b7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pandas/tools/plotting.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,10 @@ def scatter_matrix(frame, alpha=0.5, figsize=None, ax=None, grid=False,
359359
density_kwds = density_kwds or {}
360360

361361
# workaround because `c='b'` is hardcoded in matplotlibs scatter method
362-
kwds.setdefault('c', plt.rcParams['patch.facecolor'])
362+
if 'color' in kwds:
363+
pass
364+
else:
365+
kwds.setdefault('c', plt.rcParams['patch.facecolor'])
363366

364367
boundaries_list = []
365368
for a in df.columns:

0 commit comments

Comments
 (0)