Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 599fd40

Browse files
authored
Merge pull request #19592 from meeseeksmachine/auto-backport-of-pr-19587-on-v3.4.x
Backport PR #19587 on branch v3.4.x (DOC: fix plot_date doc)
2 parents eb46343 + 49e5837 commit 599fd40

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)