Skip to content

Commit 38e843f

Browse files
committed
TimeFormatter: Add __call__ docstring
1 parent 77579c3 commit 38e843f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pandas/plotting/_converter.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,15 @@ def __init__(self, locs):
107107
self.locs = locs
108108

109109
def __call__(self, x, pos=0):
110+
"""
111+
Return the time of day as a formatted string.
112+
113+
The time of day is specified by `x` as seconds since 00:00
114+
(midnight), with upto microsecond precision.
115+
116+
In the returned HH:MM:SS.mmmuuu string, microseconds,
117+
milliseconds and seconds are only displayed if non-zero.
118+
"""
110119
fmt = '%H:%M:%S.%f'
111120
s = int(x)
112121
msus = int(round((x - s) * 1e6))

0 commit comments

Comments
 (0)