Skip to content

Commit fa53eb2

Browse files
Merge pull request #278 from noelevans/matplotlib-subplot-deprecation-fix
Fixing matplotlib subplot deprecation warning/error
2 parents e7d9b8d + b714be2 commit fa53eb2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Chapter2_MorePyMC/Chapter2.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@
626626
"\n",
627627
"figsize(12.5, 5)\n",
628628
"plt.title(\"More example of artificial datasets\")\n",
629-
"for i in range(4):\n",
629+
"for i in range(1, 5):\n",
630630
" plt.subplot(4, 1, i)\n",
631631
" plot_artificial_sms_dataset()"
632632
],
@@ -2613,4 +2613,4 @@
26132613
"metadata": {}
26142614
}
26152615
]
2616-
}
2616+
}

Chapter3_MCMC/Chapter3.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@
667667
"figsize(11.0, 4)\n",
668668
"std_trace = mcmc.trace(\"stds\")[:]\n",
669669
"\n",
670-
"_i = [1, 2, 3, 0]\n",
670+
"_i = [1, 2, 3, 4]\n",
671671
"for i in range(2):\n",
672672
" plt.subplot(2, 2, _i[2 * i])\n",
673673
" plt.title(\"Posterior of center of cluster %d\" % i)\n",
@@ -1425,4 +1425,4 @@
14251425
"metadata": {}
14261426
}
14271427
]
1428-
}
1428+
}

0 commit comments

Comments
 (0)