Navigation Menu

Skip to content
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

PEP8 fixes on collections.py #1333

Merged
merged 2 commits into from Oct 9, 2012
Merged

PEP8 fixes on collections.py #1333

merged 2 commits into from Oct 9, 2012

Conversation

NelleV
Copy link
Member

@NelleV NelleV commented Oct 5, 2012

PEP8 fixes on the collections module !

Many thanks,
N

@dmcdougall
Copy link
Member

+1. Good work, Nelle.

@mdboom
Copy link
Member

mdboom commented Oct 8, 2012

+1

@@ -773,10 +778,10 @@ def __init__(self, xranges, yrange, **kwargs):
"""
ymin, ywidth = yrange
ymax = ymin + ywidth
verts = [ [(xmin, ymin), (xmin, ymax), (xmin+xwidth, ymax), (xmin+xwidth, ymin), (xmin, ymin)] for xmin, xwidth in xranges]
verts = [[(xmin, ymin), (xmin, ymax), (xmin + xwidth, ymax), (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to me like an odd, and not very readable, way to break up this chunk. I would break it after the comma, not
the parenthesis,
and probably put the "for xmin..." part on a separate line.

@NelleV
Copy link
Member Author

NelleV commented Oct 9, 2012

I've deleted imports and unused variables.

efiring added a commit that referenced this pull request Oct 9, 2012
@efiring efiring merged commit 8a38947 into matplotlib:master Oct 9, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants