diff --git a/GPy/plotting/matplot_dep/priors_plots.py b/GPy/plotting/matplot_dep/priors_plots.py index 51d84f86d..c537f5e5c 100644 --- a/GPy/plotting/matplot_dep/priors_plots.py +++ b/GPy/plotting/matplot_dep/priors_plots.py @@ -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)