diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py index 08ff41f4066e..82ee7918c25d 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -1613,11 +1613,12 @@ def plot(self, *args, scalex=True, scaley=True, data=None, **kwargs): def plot_date(self, x, y, fmt='o', tz=None, xdate=True, ydate=False, **kwargs): """ - Plot data that contains dates. + Plot co-ercing the axis to treat floats as dates. Similar to `.plot`, this plots *y* vs. *x* as lines or markers. However, the axis labels are formatted as dates depending on *xdate* - and *ydate*. + and *ydate*. Note that `.plot` will work with `datetime` and + `numpy.datetime64` objects without resorting to this method. Parameters ----------