@@ -1778,87 +1778,6 @@ def plot(self, *args, scalex=True, scaley=True, data=None, **kwargs):
1778
1778
self ._request_autoscale_view ("y" )
1779
1779
return lines
1780
1780
1781
- @_api .deprecated ("3.9" , alternative = "plot" )
1782
- @_preprocess_data (replace_names = ["x" , "y" ], label_namer = "y" )
1783
- @_docstring .interpd
1784
- def plot_date (self , x , y , fmt = 'o' , tz = None , xdate = True , ydate = False ,
1785
- ** kwargs ):
1786
- """
1787
- Plot coercing the axis to treat floats as dates.
1788
-
1789
- .. deprecated:: 3.9
1790
-
1791
- This method exists for historic reasons and will be removed in version 3.11.
1792
-
1793
- - ``datetime``-like data should directly be plotted using
1794
- `~.Axes.plot`.
1795
- - If you need to plot plain numeric data as :ref:`date-format` or
1796
- need to set a timezone, call ``ax.xaxis.axis_date`` /
1797
- ``ax.yaxis.axis_date`` before `~.Axes.plot`. See
1798
- `.Axis.axis_date`.
1799
-
1800
- Similar to `.plot`, this plots *y* vs. *x* as lines or markers.
1801
- However, the axis labels are formatted as dates depending on *xdate*
1802
- and *ydate*. Note that `.plot` will work with `datetime` and
1803
- `numpy.datetime64` objects without resorting to this method.
1804
-
1805
- Parameters
1806
- ----------
1807
- x, y : array-like
1808
- The coordinates of the data points. If *xdate* or *ydate* is
1809
- *True*, the respective values *x* or *y* are interpreted as
1810
- :ref:`Matplotlib dates <date-format>`.
1811
-
1812
- fmt : str, optional
1813
- The plot format string. For details, see the corresponding
1814
- parameter in `.plot`.
1815
-
1816
- tz : timezone string or `datetime.tzinfo`, default: :rc:`timezone`
1817
- The time zone to use in labeling dates.
1818
-
1819
- xdate : bool, default: True
1820
- If *True*, the *x*-axis will be interpreted as Matplotlib dates.
1821
-
1822
- ydate : bool, default: False
1823
- If *True*, the *y*-axis will be interpreted as Matplotlib dates.
1824
-
1825
- Returns
1826
- -------
1827
- list of `.Line2D`
1828
- Objects representing the plotted data.
1829
-
1830
- Other Parameters
1831
- ----------------
1832
- data : indexable object, optional
1833
- DATA_PARAMETER_PLACEHOLDER
1834
- **kwargs
1835
- Keyword arguments control the `.Line2D` properties:
1836
-
1837
- %(Line2D:kwdoc)s
1838
-
1839
- See Also
1840
- --------
1841
- matplotlib.dates : Helper functions on dates.
1842
- matplotlib.dates.date2num : Convert dates to num.
1843
- matplotlib.dates.num2date : Convert num to dates.
1844
- matplotlib.dates.drange : Create an equally spaced sequence of dates.
1845
-
1846
- Notes
1847
- -----
1848
- If you are using custom date tickers and formatters, it may be
1849
- necessary to set the formatters/locators after the call to
1850
- `.plot_date`. `.plot_date` will set the default tick locator to
1851
- `.AutoDateLocator` (if the tick locator is not already set to a
1852
- `.DateLocator` instance) and the default tick formatter to
1853
- `.AutoDateFormatter` (if the tick formatter is not already set to a
1854
- `.DateFormatter` instance).
1855
- """
1856
- if xdate :
1857
- self .xaxis_date (tz )
1858
- if ydate :
1859
- self .yaxis_date (tz )
1860
- return self .plot (x , y , fmt , ** kwargs )
1861
-
1862
1781
# @_preprocess_data() # let 'plot' do the unpacking..
1863
1782
@_docstring .interpd
1864
1783
def loglog (self , * args , ** kwargs ):
0 commit comments