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

Skip to content

Commit 5d40a71

Browse files
committed
Clarify a generator unpack.
1 parent 5e5bbdc commit 5d40a71

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5053,6 +5053,7 @@ def fill(self, *args, data=None, **kwargs):
50535053
"""
50545054
# For compatibility(!), get aliases from Line2D rather than Patch.
50555055
kwargs = cbook.normalize_kwargs(kwargs, mlines.Line2D)
5056+
# _get_patches_for_fill returns a generator, convert it to a list.
50565057
patches = [*self._get_patches_for_fill(*args, data=data, **kwargs)]
50575058
for poly in patches:
50585059
self.add_patch(poly)

0 commit comments

Comments
 (0)