Skip to content

Commit d406b31

Browse files
BUG: set default edgecolor to none and fix facecolor
1 parent 42a188e commit d406b31

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pandas/tools/plotting.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -361,10 +361,14 @@ def scatter_matrix(frame, alpha=0.5, figsize=None, ax=None, grid=False,
361361

362362
# workaround because `c='b'` is hardcoded in matplotlibs scatter method
363363
# only set default for `c` if `color` kwarg not supplied
364+
# edgecolors default required otherwise `color` has a border
364365
# GH 14855
366+
kwds.setdefault('edgecolors', 'none')
365367
if 'color' in kwds:
366368
pass
367-
else:
369+
if 'facecolor' in kwds:
370+
kwds.setdefault('facecolor', plt.rcParams['patch.facecolor'])
371+
if 'c' in kwds:
368372
kwds.setdefault('c', plt.rcParams['patch.facecolor'])
369373

370374
boundaries_list = []

0 commit comments

Comments
 (0)