@@ -1414,59 +1414,66 @@ def plot(self, *args, **kwargs):
1414
1414
def plot_date (self , x , y , fmt = 'o' , tz = None , xdate = True , ydate = False ,
1415
1415
** kwargs ):
1416
1416
"""
1417
- Plot with data with dates.
1417
+ A plot with data that contains dates.
1418
1418
1419
- Call signature::
1420
-
1421
- plot_date(x, y, fmt='bo', tz=None, xdate=True,
1422
- ydate=False, **kwargs)
1423
-
1424
- Similar to the :func:`~matplotlib.pyplot.plot` command, except
1419
+ Similar to the func : matplotlib.pyplot.plot command, except
1425
1420
the *x* or *y* (or both) data is considered to be dates, and the
1426
1421
axis is labeled accordingly.
1427
1422
1428
1423
*x* and/or *y* can be a sequence of dates represented as float
1429
1424
days since 0001-01-01 UTC.
1430
1425
1431
- Keyword arguments:
1426
+ Note if you are using custom date tickers and formatters, it
1427
+ may be necessary to set the formatters/locators after the call
1428
+ to meth : plot_date since meth : plot_date will set the
1429
+ default tick locator to
1430
+ class : matplotlib.dates.AutoDateLocator (if the tick
1431
+ locator is not already set to a
1432
+ class : matplotlib.dates.DateLocator instance) and the
1433
+ default tick formatter to
1434
+ class : matplotlib.dates.AutoDateFormatter (if the tick
1435
+ formatter is not already set to a
1436
+ class : matplotlib.dates.DateFormatter instance).
1437
+
1432
1438
1433
- *fmt*: string
1434
- The plot format string.
1439
+ Parameters
1440
+ ----------
1441
+ fmt : string
1442
+ The plot format string.
1435
1443
1436
- *tz* : [ *None* | timezone string | :class:`tzinfo` instance]
1444
+ tz : [ *None* | timezone string | :class:`tzinfo` instance]
1437
1445
The time zone to use in labeling dates. If *None*, defaults to rc
1438
1446
value.
1439
1447
1440
- * xdate*: [ *True* | *False* ]
1448
+ xdate : boolean
1441
1449
If *True*, the *x*-axis will be labeled with dates.
1442
1450
1443
- * ydate*: [ *False* | *True* ]
1451
+ ydate : boolean
1444
1452
If *True*, the *y*-axis will be labeled with dates.
1445
1453
1446
- Note if you are using custom date tickers and formatters, it
1447
- may be necessary to set the formatters/locators after the call
1448
- to :meth:`plot_date` since :meth:`plot_date` will set the
1449
- default tick locator to
1450
- :class:`matplotlib.dates.AutoDateLocator` (if the tick
1451
- locator is not already set to a
1452
- :class:`matplotlib.dates.DateLocator` instance) and the
1453
- default tick formatter to
1454
- :class:`matplotlib.dates.AutoDateFormatter` (if the tick
1455
- formatter is not already set to a
1456
- :class:`matplotlib.dates.DateFormatter` instance).
1457
1454
1458
- Valid kwargs are :class:`~matplotlib.lines.Line2D` properties:
1455
+ Returns
1456
+ -------
1457
+ lines
1459
1458
1460
- %(Line2D)s
1461
1459
1462
- .. seealso::
1460
+ See Also
1461
+ --------
1462
+ mod : matplotlib.dates for helper functions
1463
+ func : matplotlib.dates.date2num
1464
+ func : matplotlib.dates.num2date
1465
+ func : matplotlib.dates.drange for help on creating the required floating point dates
1466
+
1467
+
1468
+ Other Parameters
1469
+ ----------------
1470
+ kwargs : class : matplotlib.lines.Line2D properties : %(Line2D)s
1471
+
1463
1472
1464
- :mod:`~matplotlib.dates` for helper functions
1473
+ Examples
1474
+ --------
1475
+ .. plot:: mpl_examples/pylab_examples/date_demo1.py
1465
1476
1466
- :func:`~matplotlib.dates.date2num`,
1467
- :func:`~matplotlib.dates.num2date` and
1468
- :func:`~matplotlib.dates.drange` for help on creating the required
1469
- floating point dates.
1470
1477
"""
1471
1478
1472
1479
if not self ._hold :
0 commit comments