Skip to content

Commit 9b4fc6d

Browse files
author
Marc Garcia
committed
Fixing name of reuse_plot parameter
1 parent 19489ba commit 9b4fc6d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pandas/plotting/_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ def __call__(self, *args, **kwargs):
576576
data = self._parent.copy()
577577

578578
if isinstance(data, pandas.core.dtypes.generic.ABCSeries):
579-
kwargs['new_plot'] = True
579+
kwargs['reuse_plot'] = True
580580

581581
if kind in self._dataframe_kinds:
582582
if isinstance(data, ABCDataFrame):

pandas/plotting/_matplotlib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232

3333
def plot(data, kind, **kwargs):
34-
if kwargs.pop('new_plot', False):
34+
if kwargs.pop('reuse_plot', False):
3535
ax = kwargs.get('ax')
3636
if ax is None and len(plt.get_fignums()) > 0:
3737
with plt.rc_context():

0 commit comments

Comments
 (0)