@@ -341,7 +341,6 @@ def scatter_matrix(frame, alpha=0.5, figsize=None, ax=None, grid=False,
341
341
>>> df = DataFrame(np.random.randn(1000, 4), columns=['A','B','C','D'])
342
342
>>> scatter_matrix(df, alpha=0.2)
343
343
"""
344
- import matplotlib .pyplot as plt
345
344
346
345
df = frame ._get_numeric_data ()
347
346
n = df .columns .size
@@ -359,17 +358,8 @@ def scatter_matrix(frame, alpha=0.5, figsize=None, ax=None, grid=False,
359
358
hist_kwds = hist_kwds or {}
360
359
density_kwds = density_kwds or {}
361
360
362
- # workaround because `c='b'` is hardcoded in matplotlibs scatter method
363
- # only set default for `c` if `color` kwarg not supplied
364
- # edgecolors default required otherwise `color` has a border
365
361
# GH 14855
366
362
kwds .setdefault ('edgecolors' , 'none' )
367
- if 'color' in kwds :
368
- pass
369
- if 'facecolor' in kwds :
370
- kwds .setdefault ('facecolor' , plt .rcParams ['patch.facecolor' ])
371
- if 'c' in kwds :
372
- kwds .setdefault ('c' , plt .rcParams ['patch.facecolor' ])
373
363
374
364
boundaries_list = []
375
365
for a in df .columns :
@@ -2862,8 +2852,7 @@ def scatter_plot(data, x, y, by=None, ax=None, figsize=None, grid=False,
2862
2852
"""
2863
2853
import matplotlib .pyplot as plt
2864
2854
2865
- # workaround because `c='b'` is hardcoded in matplotlibs scatter method
2866
- kwargs .setdefault ('c' , plt .rcParams ['patch.facecolor' ])
2855
+ kwargs .setdefault ('edgecolors' , 'none' )
2867
2856
2868
2857
def plot_group (group , ax ):
2869
2858
xvals = group [x ].values
0 commit comments