You are reading an old version of the documentation (v3.0.0). For the latest version see https://matplotlib.org/stable/
Version 3.0.0
matplotlib
Fork me on GitHub

matplotlib.axis.YAxis.axis_date

YAxis.axis_date(tz=None)

Sets up x-axis ticks and labels that treat the x data as dates. tz is a tzinfo instance or a timezone string. This timezone is used to create date labels.