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

Skip to content

Commit 7d31ed2

Browse files
committed
Remove mlab.amap
1 parent 9aaf9fc commit 7d31ed2

3 files changed

Lines changed: 2 additions & 12 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
@@ -5,6 +5,7 @@ Lots of code inside the :mod:`matplotlib.mlab` module which was deprecated
55
in Matplotlib 2.2 has been removed. See below for a list:
66

77
- `mlab.exp_safe` (use numpy.exp instead)
8+
- `mlab.amap`
89
- `mlab.logspace` (use numpy.logspace instead)
910
- `mlab.cohere_pairs` (use scipy.signal.coherence instead)
1011
- `mlab.entropy` (use scipy.stats.entropy instead)

lib/matplotlib/mlab.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,17 +1247,6 @@ def movavg(x, n):
12471247
"""
12481248

12491249

1250-
@cbook.deprecated("2.2", alternative='numpy.array(list(map(...)))')
1251-
def amap(fn, *args):
1252-
"""
1253-
amap(function, sequence[, sequence, ...]) -> array.
1254-
1255-
Works like :func:`map`, but it returns an array. This is just a
1256-
convenient shorthand for ``numpy.array(map(...))``.
1257-
"""
1258-
return np.array(list(map(fn, *args)))
1259-
1260-
12611250
@cbook.deprecated("2.2")
12621251
def rms_flat(a):
12631252
"""

lib/matplotlib/pylab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@
229229
## We are still importing too many things from mlab; more cleanup is needed.
230230

231231
from matplotlib.mlab import (
232-
amap, base_repr, binary_repr, csv2rec,
232+
base_repr, binary_repr, csv2rec,
233233
demean, detrend, detrend_linear, detrend_mean, detrend_none,
234234
frange,
235235
identity, ispower2, isvector, l1norm,

0 commit comments

Comments
 (0)