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

Skip to content

Commit edccefa

Browse 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

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/matplotlib/axes/_axes.py

Lines 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)