Skip to content

Commit

Permalink
Merge pull request matplotlib#5688 from cimarronm/FuncFormatterDoc
Browse files Browse the repository at this point in the history
DOC: Improved documentation for FuncFormatter formatter class
  • Loading branch information
tacaswell committed Dec 17, 2015
2 parents 590f042 + a9f5070 commit 23bc09d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/matplotlib/ticker.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,9 @@ def set_offset_string(self, ofs):
class FuncFormatter(Formatter):
"""
User defined function for formatting
The function should take in two inputs (tick value *x* and position *pos*)
and return a string
"""
def __init__(self, func):
self.func = func
Expand Down

0 comments on commit 23bc09d

Please sign in to comment.