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

Skip to content

Commit 0d9235f

Browse files
committed
Remove mlab.find
1 parent f5bd8f1 commit 0d9235f

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ in Matplotlib 2.2 has been removed. See below for a list:
88
- `mlab.cohere_pairs` (use scipy.signal.coherence instead)
99
- `mlab.entropy` (use scipy.stats.entropy instead)
1010
- `mlab.normpdf` (use scipy.stats.norm.pdf instead)
11+
- `mlab.find` (use ``np.nonzero(np.ravel(condition))`` instead)
1112
- `mlab.donothing_callback`

lib/matplotlib/mlab.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,13 +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 find(condition):
1199-
"Return the indices where ravel(condition) is true"
1200-
res, = np.nonzero(np.ravel(condition))
1201-
return res
1202-
1203-
12041197
@cbook.deprecated('2.2')
12051198
def longest_contiguous_ones(x):
12061199
"""

lib/matplotlib/pylab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@
233233
amap, base_repr, binary_repr, bivariate_normal, center_matrix, csv2rec,
234234
demean, detrend, detrend_linear, detrend_mean, detrend_none, dist,
235235
dist_point_to_segment, distances_along_curve, exp_safe,
236-
fftsurr, find, frange, get_sparse_matrix, get_xyz_where, griddata,
236+
fftsurr, frange, get_sparse_matrix, get_xyz_where, griddata,
237237
identity, inside_poly, is_closed_polygon, ispower2, isvector, l1norm,
238238
l2norm, log2, longest_contiguous_ones, longest_ones, movavg, norm_flat,
239239
path_length, poly_below, poly_between, prctile, prctile_rank,

0 commit comments

Comments
 (0)