Skip to content

Commit

Permalink
Update priors_plots.py (#929)
Browse files Browse the repository at this point in the history
Change pb.hist(rvs, 100, normed=True) to pb.hist(rvs, 100, density=True) in file priors_plots.py.
  • Loading branch information
flydream0428 authored Jun 8, 2021
1 parent 111727e commit 3e19a85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GPy/plotting/matplot_dep/priors_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

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)
Expand Down

0 comments on commit 3e19a85

Please sign in to comment.