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",