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

Skip to content

Commit ff137b6

Browse files
committed
Remove mlab.FormatDate
1 parent 197228d commit ff137b6

2 files changed

Lines changed: 1 addition & 18 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
@@ -44,4 +44,5 @@ in Matplotlib 2.2 has been removed. See below for a list:
4444
- `mlab.csvformat_factory`
4545
- `mlab.get_formatd`
4646
- `mlab.FormatDatetime` (use datetime.strftime instead)
47+
- `mlab.FormatDate` (use date.strftime instead)
4748
- `mlab.donothing_callback`

lib/matplotlib/mlab.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2258,24 +2258,6 @@ def __init__(self, precision=4):
22582258
FormatFloat.__init__(self, precision, scale=1e-6)
22592259

22602260

2261-
@cbook.deprecated("2.2", alternative='date.strftime')
2262-
class FormatDate(FormatObj):
2263-
def __init__(self, fmt):
2264-
self.fmt = fmt
2265-
2266-
def __hash__(self):
2267-
return hash((self.__class__, self.fmt))
2268-
2269-
def toval(self, x):
2270-
if x is None:
2271-
return 'None'
2272-
return x.strftime(self.fmt)
2273-
2274-
def fromstr(self, x):
2275-
import dateutil.parser
2276-
return dateutil.parser.parse(x).date()
2277-
2278-
22792261
class GaussianKDE(object):
22802262
"""
22812263
Representation of a kernel-density estimate using Gaussian kernels.

0 commit comments

Comments
 (0)