Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5d40a71

Browse filesBrowse files
committed
Clarify a generator unpack.
1 parent 5e5bbdc commit 5d40a71
Copy full SHA for 5d40a71

File tree

Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed

‎lib/matplotlib/axes/_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_axes.py
+1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.