Skip to content

Commit 6431558

Browse files
Fix MatplotlibDeprecationWarning
MatplotlibDeprecationWarning: Passing non-integers as three-element position specification is deprecated since 3.3 and will be removed two minor releases later.
1 parent 4854bc6 commit 6431558

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Chapter1_Introduction/Ch1_Introduction_PyMC3.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@
209209
"\n",
210210
"# For the already prepared, I'm using Binomial's conj. prior.\n",
211211
"for k, N in enumerate(n_trials):\n",
212-
" sx = plt.subplot(len(n_trials)/2, 2, k+1)\n",
212+
" sx = plt.subplot(len(n_trials)//2, 2, k+1)\n",
213213
" plt.xlabel(\"$p$, probability of heads\") \\\n",
214214
" if k in [0, len(n_trials)-1] else None\n",
215215
" plt.setp(sx.get_yticklabels(), visible=False)\n",

0 commit comments

Comments
 (0)