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

Appearance settings

Commit 056fd64

Browse filesBrowse files
committed
Remove quotes from EngFormatter.format_eng example
This function does not, in fact, work when provided string input as implied by the current docstring.
1 parent 3067dad commit 056fd64
Copy full SHA for 056fd64

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎lib/matplotlib/ticker.py

Copy file name to clipboardExpand all lines: lib/matplotlib/ticker.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1432,7 +1432,7 @@ def format_eng(self, num):
14321432
>>> format_eng(1000000) # for self.places = 1
14331433
'1.0 M'
14341434
1435-
>>> format_eng("-1e-6") # for self.places = 2
1435+
>>> format_eng(-1e-6) # for self.places = 2
14361436
'-1.00 \N{MICRO SIGN}'
14371437
"""
14381438
sign = 1

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.