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

Skip to content

Commit acb6d03

Browse files
committed
Remove mlab.bivariate_normal
1 parent 6a628cf commit acb6d03

File tree

3 files changed

+2
-20
lines changed

3 files changed

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

lib/matplotlib/mlab.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,25 +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 bivariate_normal(X, Y, sigmax=1.0, sigmay=1.0,
1199-
mux=0.0, muy=0.0, sigmaxy=0.0):
1200-
"""
1201-
Bivariate Gaussian distribution for equal shape *X*, *Y*.
1202-
1203-
See `bivariate normal
1204-
<http://mathworld.wolfram.com/BivariateNormalDistribution.html>`_
1205-
at mathworld.
1206-
"""
1207-
Xmu = X-mux
1208-
Ymu = Y-muy
1209-
1210-
rho = sigmaxy/(sigmax*sigmay)
1211-
z = Xmu**2/sigmax**2 + Ymu**2/sigmay**2 - 2*rho*Xmu*Ymu/(sigmax*sigmay)
1212-
denom = 2*np.pi*sigmax*sigmay*np.sqrt(1-rho**2)
1213-
return np.exp(-z/(2*(1-rho**2))) / denom
1214-
1215-
12161197
@cbook.deprecated('2.2')
12171198
def get_xyz_where(Z, Cond):
12181199
"""

lib/matplotlib/pylab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@
230230
## We are still importing too many things from mlab; more cleanup is needed.
231231

232232
from matplotlib.mlab import (
233-
amap, base_repr, binary_repr, bivariate_normal, csv2rec,
233+
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,
236236
fftsurr, frange, get_sparse_matrix, get_xyz_where, griddata,

0 commit comments

Comments
 (0)