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

Skip to content

Commit 197d04d

Browse files
committed
Add super __init__ to MicrosecondLocator.
1 parent 3855452 commit 197d04d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/dates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1668,9 +1668,9 @@ def __init__(self, interval=1, tz=None):
16681668
example, if ``interval=2``, mark every second microsecond.
16691669
16701670
"""
1671+
super().__init__(tz=tz)
16711672
self._interval = interval
16721673
self._wrapped_locator = ticker.MultipleLocator(interval)
1673-
self.tz = tz
16741674

16751675
def set_axis(self, axis):
16761676
self._wrapped_locator.set_axis(axis)

0 commit comments

Comments
 (0)