It looks like there are a couple of typos in the equations used in the=20
On Friday 07 July 2006 12:17, Faheem Mitha wrote:
> I think the bivariate normal probability distribution function
> implementation in Matplotlib is buggy. See the example code below, and
> note that the change in the x directions and the y directions is not
> uniform as it should be.
> The implementation (in mlab.py) is appended.
> =A0 =A0 =A0z =3D Xmu**2/sigmax**2 + Ymu**2/sigmay - 2*rho*Xmu*Ymu/(sigmax=
> =A0 =A0 =A0return 1.0/(2*pi*sigmax*sigmay*(1-rho**2)) * exp( -z/(2*(1-rho=
Compare to equations (1) and (2) from the link in the docstring:
I've attached a patch.