Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 57fbc45

Browse filesBrowse files
committed
DOC: fix plot_date doc
1 parent 9bfd631 commit 57fbc45
Copy full SHA for 57fbc45

File tree

Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed

‎lib/matplotlib/axes/_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_axes.py
+3-2Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.