Skip to content

Commit 9ceffb8

Browse files
author
y-p
committed
Merge pull request #3159 from danbirken/kwargs_to_scatter_plot
ENH: Pass **kwargs through to matplotlib .scatter()
2 parents 7d11531 + 8fba5eb commit 9ceffb8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tools/plotting.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1703,7 +1703,7 @@ def format_date_labels(ax, rot):
17031703
pass
17041704

17051705

1706-
def scatter_plot(data, x, y, by=None, ax=None, figsize=None, grid=False):
1706+
def scatter_plot(data, x, y, by=None, ax=None, figsize=None, grid=False, **kwargs):
17071707
"""
17081708
17091709
Returns
@@ -1715,7 +1715,7 @@ def scatter_plot(data, x, y, by=None, ax=None, figsize=None, grid=False):
17151715
def plot_group(group, ax):
17161716
xvals = group[x].values
17171717
yvals = group[y].values
1718-
ax.scatter(xvals, yvals)
1718+
ax.scatter(xvals, yvals, **kwargs)
17191719
ax.grid(grid)
17201720

17211721
if by is not None:

0 commit comments

Comments
 (0)