| [ Web Proxy ] |
| Viewing: https://matplotlib.org/api/_as_gen/matplotlib.pyplot.plot_date.html#matplotlib.pyplot.plot_date | [Back] [Original] |
matplotlib
matplotlib.afm
matplotlib.animation
matplotlib.artist
matplotlib.axes
matplotlib.axis
matplotlib.backend_bases
matplotlib.backend_managers
matplotlib.backend_tools
matplotlib.backends
backend_mixed
backend_template
backend_agg
backend_cairo
backend_gtk3agg
,
backend_gtk3cairo
backend_gtk4agg
,
backend_gtk4cairo
backend_nbagg
backend_pdf
backend_pgf
backend_ps
backend_qtagg
,
backend_qtcairo
backend_svg
backend_tkagg
,
backend_tkcairo
backend_webagg
backend_wxagg
,
backend_wxcairo
matplotlib.bezier
matplotlib.blocking_input
matplotlib.category
matplotlib.cbook
matplotlib.cm
matplotlib.collections
matplotlib.colorbar
matplotlib.colors
matplotlib.container
matplotlib.contour
matplotlib.dates
matplotlib.docstring
matplotlib.dviread
matplotlib.figure
matplotlib.font_manager
matplotlib.fontconfig_pattern
matplotlib.gridspec
matplotlib.image
matplotlib.legend
matplotlib.legend_handler
matplotlib.lines
matplotlib.markers
matplotlib.mathtext
matplotlib.mlab
matplotlib.offsetbox
matplotlib.patches
matplotlib.path
matplotlib.patheffects
matplotlib.pyplot
matplotlib.projections
matplotlib.quiver
matplotlib.rcsetup
matplotlib.sankey
matplotlib.scale
matplotlib.sphinxext.mathmpl
matplotlib.sphinxext.plot_directive
matplotlib.spines
matplotlib.style
matplotlib.table
matplotlib.testing
matplotlib.text
matplotlib.texmanager
matplotlib.textpath
matplotlib.ticker
matplotlib.tight_bbox
matplotlib.tight_layout
matplotlib.transforms
matplotlib.tri
matplotlib.type1font
matplotlib.units
matplotlib.widgets
matplotlib._api
matplotlib._enums
mpl_toolkits.mplot3d
mpl_toolkits.axes_grid1
mpl_toolkits.axisartist
mpl_toolkits.axes_grid
mpl_toolkits.axes_grid1
mpl_toolkits.axisartist
Plot coercing the axis to treat floats as dates.
Discouraged
This method exists for historic reasons and will be deprecated in the future.
datetime-like data should directly be plotted using
plot.
If you need to plot plain numeric data as Matplotlib date format or
need to set a timezone, call ax.xaxis.axis_date /
ax.yaxis.axis_date before plot. See
Axis.axis_date.
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. Note that plot will work with datetime and
numpy.datetime64 objects without resorting to this method.
The coordinates of the data points. If xdate or ydate is True, the respective values x or y are interpreted as Matplotlib dates.
The plot format string. For details, see the corresponding
parameter in plot.
datetime.tzinfo, default: rcParams["timezone"] (default: 'UTC')The time zone to use in labeling dates.
If True, the x-axis will be interpreted as Matplotlib dates.
If True, the y-axis will be interpreted as Matplotlib dates.
Line2DObjects representing the plotted data.
If given, the following parameters also accept a string s, which is
interpreted as data[s] (unless this raises an exception):
x, y
Keyword arguments control the Line2D properties:
Property |
Description |
|---|---|
a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array |
|
scalar or None |
|
bool |
|
|
bool |
bool |
|
Patch or (Path, Transform) or None |
|
|
color |
|
|
|
|
sequence of floats (on/off ink in points) or (None, None) |
|
(2, N) array or two 1D arrays |
|
|
{'default', 'steps', 'steps-pre', 'steps-mid', 'steps-post'}, default: 'default' |
{'full', 'left', 'right', 'bottom', 'top', 'none'} |
|
str |
|
bool |
|
object |
|
|
{'-', '--', '-.', ':', '', (offset, on-off-seq), ...} |
|
float |
marker style string, |
|
|
color |
|
float |
|
color |
|
color |
|
float |
None or int or (int, int) or slice or list[int] or float or (float, float) or list[bool] |
|
float or callable[[Artist, Event], tuple[bool, dict]] |
|
float |
|
bool |
|
(scale: float, length: float, randomness: float) |
|
bool or None |
|
|
|
|
|
unknown |
|
str |
|
bool |
|
1D array |
|
1D array |
|
float |
See also
matplotlib.datesHelper functions on dates.
matplotlib.dates.date2numConvert dates to num.
matplotlib.dates.num2dateConvert num to dates.
matplotlib.dates.drangeCreate an equally spaced sequence of dates.
Notes
If you are using custom date tickers and formatters, it may be
necessary to set the formatters/locators after the call to
plot_date. plot_date will set the default tick locator to
AutoDateLocator (if the tick locator is not already set to a
DateLocator instance) and the default tick formatter to
AutoDateFormatter (if the tick formatter is not already set to a
DateFormatter instance).
© Copyright 2002 - 2012 John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the Matplotlib development team; 2012 - 2021 The Matplotlib development team.
Created using Sphinx 4.3.0.
| Web Proxy Viewer | New URL | Original Page |