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

Method __init__

lib/matplotlib/dates.py:1503–1523  ·  view source on GitHub ↗

Parameters ---------- bymonth : int or list of int, default: all months Ticks will be placed on every month in *bymonth*. Default is ``range(1, 13)``, i.e. every month. bymonthday : int, default: 1 The day on which to place the tic

(self, bymonth=None, bymonthday=1, interval=1, tz=None)

Source from the content-addressed store, hash-verified

1501 Make ticks on occurrences of each month, e.g., 1, 3, 12.
1502 """
1503 def __init__(self, bymonth=None, bymonthday=1, interval=1, tz=None):
1504 """
1505 Parameters
1506 ----------
1507 bymonth : int or list of int, default: all months
1508 Ticks will be placed on every month in *bymonth*. Default is
1509 ``range(1, 13)``, i.e. every month.
1510 bymonthday : int, default: 1
1511 The day on which to place the ticks.
1512 interval : int, default: 1
1513 The interval between each iteration. For example, if
1514 ``interval=2``, mark every second occurrence.
1515 tz : str or `~datetime.tzinfo`, default: :rc:`timezone`
1516 Ticks timezone. If a string, *tz* is passed to `dateutil.tz`.
1517 """
1518 if bymonth is None:
1519 bymonth = range(1, 13)
1520
1521 rule = rrulewrapper(MONTHLY, bymonth=bymonth, bymonthday=bymonthday,
1522 interval=interval, **self.hms0d)
1523 super().__init__(rule, tz=tz)
1524
1525
1526class WeekdayLocator(RRuleLocator):

Callers

nothing calls this directly

Calls 2

rrulewrapperClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected