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

Method __init__

lib/matplotlib/dates.py:1637–1654  ·  view source on GitHub ↗

Parameters ---------- bysecond : int or list of int, default: all seconds Ticks will be placed on every second in *bysecond*. Default is ``bysecond = range(60)``, i.e., every second. interval : int, default: 1 The interval between

(self, bysecond=None, interval=1, tz=None)

Source from the content-addressed store, hash-verified

1635 Make ticks on occurrences of each second.
1636 """
1637 def __init__(self, bysecond=None, interval=1, tz=None):
1638 """
1639 Parameters
1640 ----------
1641 bysecond : int or list of int, default: all seconds
1642 Ticks will be placed on every second in *bysecond*. Default is
1643 ``bysecond = range(60)``, i.e., every second.
1644 interval : int, default: 1
1645 The interval between each iteration. For example, if
1646 ``interval=2``, mark every second occurrence.
1647 tz : str or `~datetime.tzinfo`, default: :rc:`timezone`
1648 Ticks timezone. If a string, *tz* is passed to `dateutil.tz`.
1649 """
1650 if bysecond is None:
1651 bysecond = range(60)
1652
1653 rule = rrulewrapper(SECONDLY, bysecond=bysecond, interval=interval)
1654 super().__init__(rule, tz=tz)
1655
1656
1657class MicrosecondLocator(DateLocator):

Callers

nothing calls this directly

Calls 2

rrulewrapperClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected