Axes.plot_date(x, y, fmt='o', tz=None, xdate=True, ydate=False, **kwargs)¶A plot with data that contains dates.
Similar to the plot() command, except
the x or y (or both) data is considered to be dates, and the
axis is labeled accordingly.
x and/or y can be a sequence of dates represented as float days since 0001-01-01 UTC.
Note if you are using custom date tickers and formatters, it
may be necessary to set the formatters/locators after the call
to meth:plot_date since meth:plot_date will set the
default tick locator to
class:matplotlib.dates.AutoDateLocator (if the tick
locator is not already set to a
class:matplotlib.dates.DateLocator instance) and the
default tick formatter to
class:matplotlib.dates.AutoDateFormatter (if the tick
formatter is not already set to a
class:matplotlib.dates.DateFormatter instance).
| Parameters: | fmt : string
tz : [ None | timezone string |
xdate : boolean
ydate : boolean
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Returns: | lines |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Other Parameters: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
kwargs : properties :
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
See also
matplotlib.datesmatplotlib.dates.date2nummatplotlib.dates.num2datematplotlib.dates.drangeNotes
In addition to the above described arguments, this function can take a data keyword argument. If such a data argument is given, the following arguments are replaced by data[<arg>]: