8000 Simplified loop in `Axes.bxp.to_vc` by Kojoley · Pull Request #6925 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Simplified loop in Axes.bxp.to_vc #6925

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 13, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Simplified loop in Axes.bxp.to_vc
  • Loading branch information
Kojoley committed Aug 8, 2016
commit 4d2045481efdaf16125adcd55360056f64a85d0a
5 changes: 1 addition & 4 deletions lib/matplotlib/axes/_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -3641,10 +3641,7 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=True,

def to_vc(xs, ys):
# convert arguments to verts and codes
verts = []

for xi, yi in zip(xs, ys):
verts.append((xi, yi))
verts = list(zip(xs, ys))
verts.append((0, 0)) # ignored
codes = [mpath.Path.MOVETO] + \
[mpath.Path.LINETO] * (len(verts) - 2) + \
Expand Down
0