Skip to content

Commit 5129b0b

Browse files
committed
Remove pytz dependency from axis.py
1 parent 94f41d1 commit 5129b0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/axis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1747,8 +1747,8 @@ def axis_date(self, tz=None):
17471747
# the registered converter can be selected, and the "units" attribute,
17481748
# which is the timezone, can be set.
17491749
if isinstance(tz, str):
1750-
import pytz
1751-
tz = pytz.timezone(tz)
1750+
import dateutil.tz
1751+
tz = dateutil.tz.gettz(tz)
17521752
self.update_units(datetime.datetime(2009, 1, 1, 0, 0, 0, 0, tz))
17531753

17541754
def get_tick_space(self):

0 commit comments

Comments
 (0)