Skip to content

Commit 60b95ab

Browse files
committed
Fix some additional remarks made by anntzer
1 parent c98ba91 commit 60b95ab

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

examples/api/engineering_formatter.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
# Demo of the options `places` (number of digit after decimal point) and
3535
# `sep` (separator between the number and the prefix/unit).
36-
ax1.set_title('SI-prefix only ticklabels, 1-digit precision & ' +
36+
ax1.set_title('SI-prefix only ticklabels, 1-digit precision & '
3737
'thin space separator')
3838
formatter1 = EngFormatter(places=1, sep=u"\N{THIN SPACE}") # U+2009
3939
ax1.xaxis.set_major_formatter(formatter1)

lib/matplotlib/ticker.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -1219,9 +1219,8 @@ def __init__(self, unit="", places=None, sep=" "):
12191219
digits after the decimal point (there will be between one
12201220
and three digits before the decimal point). If it is None,
12211221
the formatting falls back to the floating point format '%g',
1222-
which displays up to 6 *significant* digits (i.e. the
1223-
equivalent value for *places* varies between 0 and 5, both
1224-
values included).
1222+
which displays up to 6 *significant* digits, i.e. the equivalent
1223+
value for *places* varies between 0 and 5 (inclusive).
12251224
12261225
sep : str (default: " ")
12271226
Separator used between the value and the prefix/unit. For

0 commit comments

Comments
 (0)