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

Skip to content

Commit 2821f1b

Browse files
committed
Remove mlab.rms_flat
1 parent 7d31ed2 commit 2821f1b

3 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
@@ -7,6 +7,7 @@ in Matplotlib 2.2 has been removed. See below for a list:
77
- `mlab.exp_safe` (use numpy.exp instead)
88
- `mlab.amap`
99
- `mlab.logspace` (use numpy.logspace instead)
10+
- `mlab.rms_flat`
1011
- `mlab.cohere_pairs` (use scipy.signal.coherence instead)
1112
- `mlab.entropy` (use scipy.stats.entropy instead)
1213
- `mlab.normpdf` (use scipy.stats.norm.pdf instead)

lib/matplotlib/mlab.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1246,15 +1246,6 @@ def movavg(x, n):
12461246
12471247
"""
12481248

1249-
1250-
@cbook.deprecated("2.2")
1251-
def rms_flat(a):
1252-
"""
1253-
Return the root mean square of all the elements of *a*, flattened out.
1254-
"""
1255-
return np.sqrt(np.mean(np.abs(a) ** 2))
1256-
1257-
12581249
@cbook.deprecated("2.2", alternative='numpy.linalg.norm(a, ord=1)')
12591250
def l1norm(a):
12601251
"""

lib/matplotlib/pylab.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,6 @@
234234
frange,
235235
identity, ispower2, isvector, l1norm,
236236
l2norm, log2, movavg, norm_flat,
237-
rms_flat,
238237
window_hanning, window_none)
239238

240239
from matplotlib import cbook, mlab, pyplot as plt

0 commit comments

Comments
 (0)