From 8d97b608f8d72169759fa72a9eff5c7b0f129a38 Mon Sep 17 00:00:00 2001 From: Alex Daly <11139509+azdaly@users.noreply.github.com> Date: Fri, 13 Mar 2020 08:54:51 -0400 Subject: [PATCH] Updated 'normed' to 'density' Normed has been deprecated and now throws an error - https://matplotlib.org/3.1.1/api/_as_gen/matplotlib.pyplot.hist.html --- Chapter1_Introduction/Ch1_Introduction_PyMC3.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Chapter1_Introduction/Ch1_Introduction_PyMC3.ipynb b/Chapter1_Introduction/Ch1_Introduction_PyMC3.ipynb index f5d262c2..be24102a 100644 --- a/Chapter1_Introduction/Ch1_Introduction_PyMC3.ipynb +++ b/Chapter1_Introduction/Ch1_Introduction_PyMC3.ipynb @@ -772,7 +772,7 @@ "ax.set_autoscaley_on(False)\n", "\n", "plt.hist(lambda_1_samples, histtype='stepfilled', bins=30, alpha=0.85,\n", - " label=\"posterior of $\\lambda_1$\", color=\"#A60628\", normed=True)\n", + " label=\"posterior of $\\lambda_1$\", color=\"#A60628\", density=True)\n", "plt.legend(loc=\"upper left\")\n", "plt.title(r\"\"\"Posterior distributions of the variables\n", " $\\lambda_1,\\;\\lambda_2,\\;\\tau$\"\"\")\n", @@ -782,7 +782,7 @@ "ax = plt.subplot(312)\n", "ax.set_autoscaley_on(False)\n", "plt.hist(lambda_2_samples, histtype='stepfilled', bins=30, alpha=0.85,\n", - " label=\"posterior of $\\lambda_2$\", color=\"#7A68A6\", normed=True)\n", + " label=\"posterior of $\\lambda_2$\", color=\"#7A68A6\", density=True)\n", "plt.legend(loc=\"upper left\")\n", "plt.xlim([15, 30])\n", "plt.xlabel(\"$\\lambda_2$ value\")\n",