Update priors_plots.py (#929)

Change pb.hist(rvs, 100, normed=True) to pb.hist(rvs, 100, density=True) in file priors_plots.py.
This commit is contained in:
Tao Cui 2021-06-08 12:28:37 +10:00 committed by GitHub
parent 111727e139
commit 3e19a85575
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,7 +11,7 @@ except:
def univariate_plot(prior):
rvs = prior.rvs(1000)
pb.hist(rvs, 100, normed=True)
pb.hist(rvs, 100, density=True)
xmin, xmax = pb.xlim()
xx = np.linspace(xmin, xmax, 1000)
pb.plot(xx, prior.pdf(xx), 'r', linewidth=2)