File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -994,18 +994,15 @@ class PercentFormatter(Formatter):
994
994
Percentages are computed as ``x / max * 100``. So if the data is
995
995
already scaled to be percentages, `max` will be 100. Another common
996
996
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.
997
1004
"""
998
1005
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
- """
1009
1006
self .max = max + 0.0
1010
1007
self .decimals = decimals
1011
1008
self .symbol = symbol
You can’t perform that action at this time.
0 commit comments