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 ticker.py #1358

Merged
merged 1 commit into from Oct 13, 2012
Merged

PEP8 fixes on ticker.py #1358

merged 1 commit into from Oct 13, 2012

Conversation

NelleV
Copy link
Member

@NelleV NelleV commented Oct 10, 2012

PEP8 fixes on the ticker module.

Thanks,
N

@@ -534,8 +560,9 @@ def _set_format(self, vmin, vmax):
self.format = '$\mathdefault{%s}$' % self.format

def pprint_val(self, x):
xp = (x-self.offset)/10**self.orderOfMagnitude
if np.absolute(xp) < 1e-8: xp = 0
xp = (x - self.offset) / 10 ** self.orderOfMagnitude
Copy link
Member

Choose a reason for hiding this comment

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

Order of operations would be clearer with some extra parentheses here.

@dmcdougall
Copy link
Member

@NelleV Can you squash to one commit?

@NelleV
Copy link
Member Author

NelleV commented Oct 13, 2012

@dmcdougall Done !

dmcdougall added a commit that referenced this pull request Oct 13, 2012
@dmcdougall dmcdougall merged commit 1135592 into matplotlib:master Oct 13, 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