8000 PEP8 fixes on contour.py by NelleV · Pull Request #1395 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

PEP8 fixes on contour.py #1395

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
Nov 9, 2012
Merged

PEP8 fixes on contour.py #1395

merged 1 commit into from
Nov 9, 2012

Conversation

NelleV
Copy link
Member
@NelleV NelleV commented Oct 14, 2012

PEP8 fixes on module contour.

Thanks,
N.

tcolors = [ (tuple(rgb 8000 a),) for rgba in
self.to_rgba(self.cvalues, alpha=self.alpha)]
tcolors = [(tuple(rgba),) for rgba
in self.to_rgba(self.cvalues, alpha=self.alpha)]
Copy link
Member

Choose a reason for hiding this comment

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

Perhaps move the for rgba part of the list comprehension into this line?

@NelleV
Copy link
Member Author
NelleV commented Nov 8, 2012

Done,

Cheers,
N

lower, ))
elif i == n_levels - 1 and self.extend in ('max', 'both'):
labels.append(r'$%s > %s$' % (variable_name,
upper, ))
Copy link
Member

Choose a reason for hiding this comment

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

Looks like the trailing commas are just a distraction; you might as well go ahead and remove them.

< 8000 p class="text-center mt-3" data-hide-on-error>

@NelleV
Copy link
Member Author
NelleV commented Nov 9, 2012

I've removed the unnecessary commas

@dmcdougall
Copy link
Member

Thanks. Does anyone else have any feedback for @NelleV?

efiring added a commit that referenced this pull request Nov 9, 2012
@efiring efiring merged commit 2044223 into matplotlib:master Nov 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.

4 participants
0