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

Skip to content

Minor cleanup: PEP8, PEP257 #10542

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
Mar 9, 2018

Conversation

timhoffm
Copy link
Member

PR Summary

Minor code and docstring formatting changes to conform with PEP8 and PEP257.

if axis in ["both", "x"]:
locs = []
y1, y2 = self.axes.get_ylim()
#if self.axes.xaxis._gridOnMajor:
# if self.axes.xaxis._gridOnMajor:
Copy link
Contributor

Choose a reason for hiding this comment

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

seems quite clearly removable, below too

self._axisline_on = True

helper = kw.pop("grid_helper", None)
Copy link
Contributor

Choose a reason for hiding this comment

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

target 3.0 and make this a kwonly argument?

Copy link
Contributor

@anntzer anntzer left a comment

Choose a reason for hiding this comment

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

minor additional improvements possible

@tacaswell tacaswell added this to the v3.0 milestone Feb 20, 2018
@timhoffm timhoffm force-pushed the minor-cleanup-pep8-pep257 branch from 86bc45e to 590d69b Compare February 20, 2018 20:26
@timhoffm timhoffm force-pushed the minor-cleanup-pep8-pep257 branch from 590d69b to eb07c30 Compare February 20, 2018 21:07
@jklymak jklymak merged commit aadd0e0 into matplotlib:master Mar 9, 2018
@timhoffm timhoffm deleted the minor-cleanup-pep8-pep257 branch March 11, 2018 17:57
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