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

Skip to content

Commit 056fd64

Browse 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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/ticker.py

Lines 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)