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

Skip to content

Commit 2157968

Browse files
committed
Remove mlab.movavg
1 parent dedc269 commit 2157968

3 files changed

Lines changed: 1 addition & 11 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
@@ -18,6 +18,7 @@ in Matplotlib 2.2 has been removed. See below for a list:
1818
- `mlab.ispower2`
1919
- `mlab.log2` (use numpy.log2 instead)
2020
- `mlab.isvector`
21+
- `mlab.movavg`
2122
- `mlab.cohere_pairs` (use scipy.signal.coherence instead)
2223
- `mlab.entropy` (use scipy.stats.entropy instead)
2324
- `mlab.normpdf` (use scipy.stats.norm.pdf instead)

lib/matplotlib/mlab.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,16 +1194,6 @@ def cohere(x, y, NFFT=256, Fs=2, detrend=detrend_none, window=window_hanning,
11941194
return Cxy, f
11951195

11961196

1197-
@cbook.deprecated('2.2')
1198-
def movavg(x, n):
1199-
"""
1200-
Compute the len(*n*) moving average of *x*.
1201-
"""
1202-
w = np.empty((n,), dtype=float)
1203-
w[:] = 1.0/n
1204-
return np.convolve(x, w, mode='valid')
1205-
1206-
12071197
# helpers for loading, saving, manipulating and viewing numpy record arrays
12081198
@cbook.deprecated("2.2", 'numpy.isnan')
12091199
def safe_isnan(x):

lib/matplotlib/pylab.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,6 @@
231231
from matplotlib.mlab import (
232232
csv2rec,
233233
demean, detrend, detrend_linear, detrend_mean, detrend_none,
234-
movavg,
235234
window_hanning, window_none)
236235

237236
from matplotlib import cbook, mlab, pyplot as plt

0 commit comments

Comments
 (0)