Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Patch for issue #6009#6014

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Merged
Changes from1 commit
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
PrevPrevious commit
NextNext commit
PEP8 compliance
Now “All right” on pep8online.com for the method format_eng in the class EngFormatter.
  • Loading branch information
@afvincent
afvincent committedJun 5, 2016
commitcf201324e45fe64204a2ee561e9d6f99c9cac7cc
4 changes: 2 additions & 2 deletionslib/matplotlib/ticker.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -1112,11 +1112,11 @@ def format_eng(self, num):
format_str = ("%%.%if %%s" % self.places)

formatted = format_str % (mant, prefix)

formatted = formatted.strip()
if (self.unit is not "") and (prefix is self.ENG_PREFIXES[0]):
Copy link
Member

Choose a reason for hiding this comment

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

I think this should be== notis. It is just a little less brittle.

formatted = formatted + " "

return formatted


Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp