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

Method __init__

lib/matplotlib/dates.py:948–963  ·  view source on GitHub ↗

Parameters ---------- freq : {YEARLY, MONTHLY, WEEKLY, DAILY, HOURLY, MINUTELY, SECONDLY} Tick frequency. These constants are defined in `dateutil.rrule`, but they are accessible from `matplotlib.dates` as well. tzinfo : `datetime.tzinfo`, opt

(self, freq, tzinfo=None, **kwargs)

Source from the content-addressed store, hash-verified

946 date tick specifications.
947 """
948 def __init__(self, freq, tzinfo=None, **kwargs):
949 """
950 Parameters
951 ----------
952 freq : {YEARLY, MONTHLY, WEEKLY, DAILY, HOURLY, MINUTELY, SECONDLY}
953 Tick frequency. These constants are defined in `dateutil.rrule`,
954 but they are accessible from `matplotlib.dates` as well.
955 tzinfo : `datetime.tzinfo`, optional
956 Time zone information. The default is None.
957 **kwargs
958 Additional keyword arguments are passed to the `dateutil.rrule`.
959 """
960 kwargs['freq'] = freq
961 self._base_tzinfo = tzinfo
962
963 self._update_rrule(**kwargs)
964
965 def set(self, **kwargs):
966 """Set parameters for an existing wrapper."""

Callers

nothing calls this directly

Calls 1

_update_rruleMethod · 0.95

Tested by

no test coverage detected