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

Skip to content

Commit 80355e0

Browse files
committed
DOC: add comment about use of lambdas to unpack args/kwrags
credit goes to @anntzer
1 parent dd9c7b1 commit 80355e0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2005,7 +2005,8 @@ def bar(self, *args, **kwargs):
20052005
20062006
"""
20072007
kwargs = cbook.normalize_kwargs(kwargs, mpatches._patch_alias_map)
2008-
2008+
# this is using the lambdas to do the arg/kwarg unpacking rather
2009+
# than trying to re-implement all of that logic our selves.
20092010
matchers = [
20102011
(lambda x, height, width=0.8, bottom=None, **kwargs:
20112012
(False, x, height, width, bottom, kwargs)),
@@ -2313,6 +2314,8 @@ def barh(self, *args, **kwargs):
23132314
%(Rectangle)s
23142315
23152316
"""
2317+
# this is using the lambdas to do the arg/kwarg unpacking rather
2318+
# than trying to re-implement all of that logic our selves.
23162319
matchers = [
23172320
(lambda y, width, height=0.8, left=None, **kwargs:
23182321
(False, y, width, height, left, kwargs)),

0 commit comments

Comments
 (0)