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

Skip to content

Commit 02c939f

Browse files
committed
Remove mlab.normpdf
1 parent d6b54ab commit 02c939f

3 files changed

Lines changed: 2 additions & 9 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,4 +7,5 @@ in Matplotlib 2.2 has been removed. See below for a list:
77
- `mlab.logspace` (use numpy.logspace instead)
88
- `mlab.cohere_pairs` (use scipy.signal.coherence instead)
99
- `mlab.entropy` (use scipy.stats.entropy instead)
10+
- `mlab.normpdf` (use scipy.stats.norm.pdf instead)
1011
- `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', 'scipy.stats.norm.pdf')
1198-
def normpdf(x, *args):
1199-
"Return the normal pdf evaluated at *x*; args provides *mu*, *sigma*"
1200-
mu, sigma = args
1201-
return 1./(np.sqrt(2*np.pi)*sigma)*np.exp(-0.5 * (1./sigma*(x - mu))**2)
1202-
1203-
12041197
@cbook.deprecated('2.2')
12051198
def find(condition):
12061199
"Return the indices where ravel(condition) is true"

lib/matplotlib/pylab.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@
154154
155155
_Probability
156156
157-
normpdf - The Gaussian probability density function
158157
rand - random numbers from the uniform distribution
159158
randn - random numbers from the normal distribution
160159
@@ -237,7 +236,7 @@
237236
fftsurr, find, frange, get_sparse_matrix, get_xyz_where, griddata,
238237
identity, inside_poly, is_closed_polygon, ispower2, isvector, l1norm,
239238
l2norm, log2, longest_contiguous_ones, longest_ones, movavg, norm_flat,
240-
normpdf, path_length, poly_below, poly_between, prctile, prctile_rank,
239+
path_length, poly_below, poly_between, prctile, prctile_rank,
241240
rec2csv, rec_append_fields, rec_drop_fields, rec_join, rk4, rms_flat,
242241
segments_intersect, slopes, stineman_interp, vector_lengths,
243242
window_hanning, window_none)

0 commit comments

Comments
 (0)