Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9683c51

Browse files
Update Ch1_Introduction_PyMC3.ipynb
new matplotlib style has deprecated 'normed' and replaced it with density. It returns AttributeError: Unknown property density 'normed' property changed to 'density' in plt.hist
1 parent 0e07071 commit 9683c51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎Chapter1_Introduction/Ch1_Introduction_PyMC3.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@
772772
"ax.set_autoscaley_on(False)\n",
773773
"\n",
774774
"plt.hist(lambda_1_samples, histtype='stepfilled', bins=30, alpha=0.85,\n",
775-
" label=\"posterior of $\\lambda_1$\", color=\"#A60628\", normed=True)\n",
775+
" label=\"posterior of $\\lambda_1$\", color=\"#A60628\", density=True)\n",
776776
"plt.legend(loc=\"upper left\")\n",
777777
"plt.title(r\"\"\"Posterior distributions of the variables\n",
778778
" $\\lambda_1,\\;\\lambda_2,\\;\\tau$\"\"\")\n",
@@ -782,7 +782,7 @@
782782
"ax = plt.subplot(312)\n",
783783
"ax.set_autoscaley_on(False)\n",
784784
"plt.hist(lambda_2_samples, histtype='stepfilled', bins=30, alpha=0.85,\n",
785-
" label=\"posterior of $\\lambda_2$\", color=\"#7A68A6\", normed=True)\n",
785+
" label=\"posterior of $\\lambda_2$\", color=\"#7A68A6\", density=True)\n",
786786
"plt.legend(loc=\"upper left\")\n",
787787
"plt.xlim([15, 30])\n",
788788
"plt.xlabel(\"$\\lambda_2$ value\")\n",

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /