From 3e19a85575687e37fd6f61174115d7c94d2c96e6 Mon Sep 17 00:00:00 2001 From: Tao Cui Date: Tue, 8 Jun 2021 12:28:37 +1000 Subject: [PATCH] Update priors_plots.py (#929) Change pb.hist(rvs, 100, normed=True) to pb.hist(rvs, 100, density=True) in file priors_plots.py. --- GPy/plotting/matplot_dep/priors_plots.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPy/plotting/matplot_dep/priors_plots.py b/GPy/plotting/matplot_dep/priors_plots.py index 51d84f86..c537f5e5 100644 --- a/GPy/plotting/matplot_dep/priors_plots.py +++ b/GPy/plotting/matplot_dep/priors_plots.py @@ -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)