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

Method __init__

lib/matplotlib/dates.py:1531–1552  ·  view source on GitHub ↗

Parameters ---------- byweekday : int, list of int, constant from :mod:`dateutil.rrule`, or \ list of constants, default: 1 (Tuesday) Ticks will be placed on every weekday in *byweekday*. Default is every Tuesday. Elements of

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

Source from the content-addressed store, hash-verified

1529 """
1530
1531 def __init__(self, byweekday=1, interval=1, tz=None):
1532 """
1533 Parameters
1534 ----------
1535 byweekday : int, list of int, constant from :mod:`dateutil.rrule`, or \
1536 list of constants, default: 1 (Tuesday)
1537 Ticks will be placed on every weekday in *byweekday*. Default is
1538 every Tuesday.
1539
1540 Elements of *byweekday* (if a sequence) must be either integers or
1541 MO, TU, WE, TH, FR, SA, SU, the constants from
1542 :mod:`dateutil.rrule`, which have been imported into the
1543 :mod:`matplotlib.dates` namespace.
1544 interval : int, default: 1
1545 The interval between each iteration. For example, if
1546 ``interval=2``, mark every second occurrence.
1547 tz : str or `~datetime.tzinfo`, default: :rc:`timezone`
1548 Ticks timezone. If a string, *tz* is passed to `dateutil.tz`.
1549 """
1550 rule = rrulewrapper(DAILY, byweekday=byweekday,
1551 interval=interval, **self.hms0d)
1552 super().__init__(rule, tz=tz)
1553
1554
1555class DayLocator(RRuleLocator):

Callers

nothing calls this directly

Calls 2

rrulewrapperClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected