MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / __init__

Method __init__

lib/matplotlib/dates.py:1679–1691  ·  view source on GitHub ↗

Parameters ---------- interval : int, default: 1 The interval between each iteration. For example, if ``interval=2``, mark every second occurrence. tz : str or `~datetime.tzinfo`, default: :rc:`timezone` Ticks timezone. If a string

(self, interval=1, tz=None)

Source from the content-addressed store, hash-verified

1677
1678 """
1679 def __init__(self, interval=1, tz=None):
1680 """
1681 Parameters
1682 ----------
1683 interval : int, default: 1
1684 The interval between each iteration. For example, if
1685 ``interval=2``, mark every second occurrence.
1686 tz : str or `~datetime.tzinfo`, default: :rc:`timezone`
1687 Ticks timezone. If a string, *tz* is passed to `dateutil.tz`.
1688 """
1689 super().__init__(tz=tz)
1690 self._interval = interval
1691 self._wrapped_locator = ticker.MultipleLocator(interval)
1692
1693 def set_axis(self, axis):
1694 self._wrapped_locator.set_axis(axis)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected