8000 Merge pull request #19587 from jklymak/doc-fix-plot_date-doc · matplotlib/matplotlib@6ddad42 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6ddad42

Browse files
authored
Merge pull request #19587 from jklymak/doc-fix-plot_date-doc
DOC: fix plot_date doc
2 parents 9bfd631 + 57fbc45 commit 6ddad42

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1613,11 +1613,12 @@ def plot(self, *args, scalex=True, scaley=True, data=None, **kwargs):
16131613
def plot_date(self, x, y, fmt='o', tz=None, xdate=True, ydate=False,
16141614
**kwargs):
16151615
"""
1616-
Plot data that contains dates.
1616+
Plot co-ercing the axis to treat floats as dates.
16171617
16181618
Similar to `.plot`, this plots *y* vs. *x* as lines or markers.
16191619
However, the axis labels are formatted as dates depending on *xdate*
1620-
and *ydate*.
1620+
and *ydate*. Note that `.plot` will work with `datetime` and
1621+
`numpy.datetime64` objects without resorting to this method.
16211622
16221623
Parameters
16231624
----------

0 commit comments

Comments
 (0)
0