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

Method set_tzinfo

lib/matplotlib/dates.py:1082–1091  ·  view source on GitHub ↗

Set timezone info. Parameters ---------- tz : str or `~datetime.tzinfo`, default: :rc:`timezone` Ticks timezone. If a string, *tz* is passed to `dateutil.tz`.

(self, tz)

Source from the content-addressed store, hash-verified

1080 self.tz = _get_tzinfo(tz)
1081
1082 def set_tzinfo(self, tz):
1083 """
1084 Set timezone info.
1085
1086 Parameters
1087 ----------
1088 tz : str or `~datetime.tzinfo`, default: :rc:`timezone`
1089 Ticks timezone. If a string, *tz* is passed to `dateutil.tz`.
1090 """
1091 self.tz = _get_tzinfo(tz)
1092
1093 def datalim_to_dt(self):
1094 """Convert axis data interval to datetime objects."""

Callers 1

test_DateLocatorFunction · 0.95

Calls 1

_get_tzinfoFunction · 0.85

Tested by 1

test_DateLocatorFunction · 0.76