Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 23bc09d

Browse files
committed
Merge pull request #5688 from cimarronm/FuncFormatterDoc
DOC: Improved documentation for FuncFormatter formatter class
2 parents 590f042 + a9f5070 commit 23bc09d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/matplotlib/ticker.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,9 @@ def set_offset_string(self, ofs):
326326
class FuncFormatter(Formatter):
327327
"""
328328
User defined function for formatting
329+
330+
The function should take in two inputs (tick value *x* and position *pos*)
331+
and return a string
329332
"""
330333
def __init__(self, func):
331334
self.func = func

0 commit comments

Comments
 (0)