Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ccaaa4a

Browse files
committed
ENH: thread kwarg to return kwargs through __call__
1 parent f69580e commit ccaaa4a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def set_prop_cycle(self, cycler):
224224
self._idx = 0
225225
self._cycler_items = [*cycler]
226226

227-
def __call__(self, axes, *args, data=None, **kwargs):
227+
def __call__(self, axes, *args, data=None, return_kwargs=False, **kwargs):
228228
axes._process_unit_info(kwargs=kwargs)
229229

230230
for pos_only in "xy":
@@ -295,7 +295,9 @@ def __call__(self, axes, *args, data=None, **kwargs):
295295
this += args[0],
296296
args = args[1:]
297297
yield from self._plot_args(
298-
axes, this, kwargs, ambiguous_fmt_datakey=ambiguous_fmt_datakey)
298+
axes, this, kwargs, ambiguous_fmt_datakey=ambiguous_fmt_datakey,
299+
return_kwargs=return_kwargs
300+
)
299301

300302
def get_next_color(self):
301303
"""Return the next color in the cycle."""

0 commit comments

Comments
 (0)