@@ -1414,12 +1414,7 @@ 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.
1418
-
1419
- Call signature::
1420
-
1421
- plot_date(x, y, fmt='bo', tz=None, xdate=True,
1422
- ydate=False, **kwargs)
1417
+ A plot with data that contains dates.
1423
1418
1424
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
@@ -1428,45 +1423,53 @@ def plot_date(self, x, y, fmt='o', tz=None, xdate=True, ydate=False,
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
1439
+ Parameters
1440
+ ----------
1441
+ fmt : string
1434
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
1458
+
1459
1459
1460
- %(Line2D)s
1460
+ See Also
1461
+ --------
1462
+ matplotlib.dates : helper functions on dates
1463
+ matplotlib.dates.date2num : how to convert dates to num
1464
+ matplotlib.dates.num2date : how to convert num to dates
1465
+ matplotlib.dates.drange : how floating point dates
1461
1466
1462
- .. seealso::
1463
1467
1464
- :mod:`~matplotlib.dates` for helper functions
1468
+ Other Parameters
1469
+ ----------------
1470
+ kwargs : :class:`matplotlib.lines.Line2D`
1471
+ properties : %(Line2D)s
1465
1472
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
1473
"""
1471
1474
1472
1475
if not self ._hold :
0 commit comments