Skip to content

Commit da23aab

Browse files
BUG: remove new changes and old bug fix
1 parent d3ef588 commit da23aab

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

pandas/tools/plotting.py

+1-12
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,6 @@ def scatter_matrix(frame, alpha=0.5, figsize=None, ax=None, grid=False,
341341
>>> df = DataFrame(np.random.randn(1000, 4), columns=['A','B','C','D'])
342342
>>> scatter_matrix(df, alpha=0.2)
343343
"""
344-
import matplotlib.pyplot as plt
345344

346345
df = frame._get_numeric_data()
347346
n = df.columns.size
@@ -359,17 +358,8 @@ def scatter_matrix(frame, alpha=0.5, figsize=None, ax=None, grid=False,
359358
hist_kwds = hist_kwds or {}
360359
density_kwds = density_kwds or {}
361360

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
365361
# GH 14855
366362
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'])
373363

374364
boundaries_list = []
375365
for a in df.columns:
@@ -2862,8 +2852,7 @@ def scatter_plot(data, x, y, by=None, ax=None, figsize=None, grid=False,
28622852
"""
28632853
import matplotlib.pyplot as plt
28642854

2865-
# workaround because `c='b'` is hardcoded in matplotlibs scatter method
2866-
kwargs.setdefault('c', plt.rcParams['patch.facecolor'])
2855+
kwargs.setdefault('edgecolors', 'none')
28672856

28682857
def plot_group(group, ax):
28692858
xvals = group[x].values

0 commit comments

Comments
 (0)