10000 DOC: Fixed up the docs some more · matplotlib/matplotlib@c91a87b · GitHub
[go: up one dir, main page]

Skip to content

Commit c91a87b

Browse files
committed
DOC: Fixed up the docs some more
1 parent a6c2775 commit c91a87b

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

lib/matplotlib/ticker.py

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -994,18 +994,15 @@ class PercentFormatter(Formatter):
994994
Percentages are computed as ``x / max * 100``. So if the data is
995995
already scaled to be percentages, `max` will be 100. Another common
996996
situation is where `max` is 1.0.
997+
998+
`symbol` is a string which will be appended to the label. It may be
999+
`None` or empty to indicate that no symbol should be used.
1000+
1001+
`decimals` is the number of decimal places to place after the point.
1002+
If it is set to `None` (the default), the number will be computed
1003+
automatically.
9971004
"""
9981005
def __init__(self, max=100, decimals=None, symbol='%'):
999-
"""
1000-
Initializes the formatter.
1001-
1002-
`max` is the data value that corresponds to 100%. `symbol` is
1003-
a string which will be appended to the label. It may be `None`
1004-
or empty to indicate that no symbol should be used. `decimals`
1005-
is the number of decimal places to place after the point. If
1006-
it is set to `None` (the default), the number will be computed
1007-
automatically.
1008-
"""
10091006
self.max = max + 0.0
10101007
self.decimals = decimals
10111008
self.symbol = symbol

0 commit comments

Comments
 (0)
0