From 8fb49ea7e037d338b6fe487eee487e4f34850b87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Geron?= Date: Fri, 24 Apr 2020 16:49:42 +1200 Subject: [PATCH] plt.hist() normed renamed to density --- tools_numpy.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools_numpy.ipynb b/tools_numpy.ipynb index d64f1e0..dcb4030 100644 --- a/tools_numpy.ipynb +++ b/tools_numpy.ipynb @@ -368,8 +368,8 @@ "metadata": {}, "outputs": [], "source": [ - "plt.hist(np.random.rand(100000), normed=True, bins=100, histtype=\"step\", color=\"blue\", label=\"rand\")\n", - "plt.hist(np.random.randn(100000), normed=True, bins=100, histtype=\"step\", color=\"red\", label=\"randn\")\n", + "plt.hist(np.random.rand(100000), density=True, bins=100, histtype=\"step\", color=\"blue\", label=\"rand\")\n", + "plt.hist(np.random.randn(100000), density=True, bins=100, histtype=\"step\", color=\"red\", label=\"randn\")\n", "plt.axis([-2.5, 2.5, 0, 1.1])\n", "plt.legend(loc = \"upper left\")\n", "plt.title(\"Random distributions\")\n",