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

Skip to content

Commit 3867b78

Browse files
committed
Remove mlab.get_xyz_where
1 parent acb6d03 commit 3867b78

File tree

3 files changed

+2
-14
lines changed

3 files changed

+2
-14
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
@@ -17,4 +17,5 @@ in Matplotlib 2.2 has been removed. See below for a list:
1717
- `mlab.center_matrix`
1818
- `mlab.rk4` (use scipy.integrate.ode instead)
1919
- `mlab.bivariate_normal`
20+
- `mlab.get_xyz_where`
2021
- `mlab.donothing_callback`

lib/matplotlib/mlab.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,19 +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 get_xyz_where(Z, Cond):
1199-
"""
1200-
*Z* and *Cond* are *M* x *N* matrices. *Z* are data and *Cond* is
1201-
a boolean matrix where some condition is satisfied. Return value
1202-
is (*x*, *y*, *z*) where *x* and *y* are the indices into *Z* and
1203-
*z* are the values of *Z* at those indices. *x*, *y*, and *z* are
1204-
1D arrays.
1205-
"""
1206-
X, Y = np.indices(Z.shape)
1207-
return X[Cond], Y[Cond], Z[Cond]
1208-
1209-
12101197
@cbook.deprecated('2.2')
12111198
def get_sparse_matrix(M, N, frac=0.1):
12121199
"""

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, csv2rec,
234234
demean, detrend, detrend_linear, detrend_mean, detrend_none, dist,
235235
dist_point_to_segment, distances_along_curve, exp_safe,
236-
fftsurr, frange, get_sparse_matrix, get_xyz_where, griddata,
236+
fftsurr, frange, get_sparse_matrix, griddata,
237237
identity, inside_poly, is_closed_polygon, ispower2, isvector, l1norm,
238238
l2norm, log2, movavg, norm_flat,
239239
path_length, poly_below, poly_between,

0 commit comments

Comments
 (0)