Skip to content

Commit

Permalink
DOC: Fixed up the docs some more
Browse files Browse the repository at this point in the history
  • Loading branch information
madphysicist committed Mar 31, 2016
1 parent a6c2775 commit c91a87b
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions lib/matplotlib/ticker.py
Expand Up @@ -994,18 +994,15 @@ class PercentFormatter(Formatter):
Percentages are computed as ``x / max * 100``. So if the data is
already scaled to be percentages, `max` will be 100. Another common
situation is where `max` is 1.0.
`symbol` is a string which will be appended to the label. It may be
`None` or empty to indicate that no symbol should be used.
`decimals` is the number of decimal places to place after the point.
If it is set to `None` (the default), the number will be computed
automatically.
"""
def __init__(self, max=100, decimals=None, symbol='%'):
"""
Initializes the formatter.
`max` is the data value that corresponds to 100%. `symbol` is
a string which will be appended to the label. It may be `None`
or empty to indicate that no symbol should be used. `decimals`
is the number of decimal places to place after the point. If
it is set to `None` (the default), the number will be computed
automatically.
"""
self.max = max + 0.0
self.decimals = decimals
self.symbol = symbol
Expand Down

0 comments on commit c91a87b

Please sign in to comment.