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 edccefa

Browse filesBrowse files
authored
Merge pull request #6925 from Kojoley/simplify-loop-to_vc
MNT: Simplified loop in `Axes.bxp.to_vc`
2 parents 0b88da5 + 4d20454 commit edccefa
Copy full SHA for edccefa

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+1
-4
lines changed

‎lib/matplotlib/axes/_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_axes.py
+1-4Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3641,10 +3641,7 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=True,
36413641

36423642
def to_vc(xs, ys):
36433643
# convert arguments to verts and codes
3644-
verts = []
3645-
3646-
for xi, yi in zip(xs, ys):
3647-
verts.append((xi, yi))
3644+
verts = list(zip(xs, ys))
36483645
verts.append((0, 0)) # ignored
36493646
codes = [mpath.Path.MOVETO] + \
36503647
[mpath.Path.LINETO] * (len(verts) - 2) + \

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.