Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 197228d

Browse files
committed
Remove mlab.FormatDatetime
1 parent 52b55de commit 197228d

2 files changed

Lines changed: 1 addition & 10 deletions

File tree

doc/api/next_api_changes/2018-09-18-DS.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,5 @@ in Matplotlib 2.2 has been removed. See below for a list:
4343
- `mlab.rec2text` (use numpy.recarray.tofile instead)
4444
- `mlab.csvformat_factory`
4545
- `mlab.get_formatd`
46+
- `mlab.FormatDatetime` (use datetime.strftime instead)
4647
- `mlab.donothing_callback`

lib/matplotlib/mlab.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2276,16 +2276,6 @@ def fromstr(self, x):
22762276
return dateutil.parser.parse(x).date()
22772277

22782278

2279-
@cbook.deprecated("2.2", alternative='datetime.strftime')
2280-
class FormatDatetime(FormatDate):
2281-
def __init__(self, fmt='%Y-%m-%d %H:%M:%S'):
2282-
FormatDate.__init__(self, fmt)
2283-
2284-
def fromstr(self, x):
2285-
import dateutil.parser
2286-
return dateutil.parser.parse(x)
2287-
2288-
22892279
class GaussianKDE(object):
22902280
"""
22912281
Representation of a kernel-density estimate using Gaussian kernels.

0 commit comments

Comments
 (0)