Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf20132 commit 7724f09Copy full SHA for 7724f09
1 file changed
lib/matplotlib/ticker.py
@@ -1114,7 +1114,7 @@ def format_eng(self, num):
1114
formatted = format_str % (mant, prefix)
1115
1116
formatted = formatted.strip()
1117
- if (self.unit is not "") and (prefix is self.ENG_PREFIXES[0]):
+ if (self.unit != "") and (prefix == self.ENG_PREFIXES[0]):
1118
formatted = formatted + " "
1119
1120
return formatted
0 commit comments