Skip to content

Commit 9c1c6ce

Browse files
committed
Update Chapter1.ipynb
Simplify ylim tweaks
1 parent 6910d7d commit 9c1c6ce

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Chapter1_Introduction/Chapter1.ipynb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,7 @@
360360
" label=\"posterior distribution\",\n",
361361
" lw=\"3\", edgecolor=colours[1])\n",
362362
"\n",
363-
"axes = plt.gca()",
364-
"axes.set_ylim([0,1])",
363+
"plt.ylim(0,1)",
365364
"plt.xticks([0.20, .95], [\"Bugs Absent\", \"Bugs Present\"])\n",
366365
"plt.title(\"Prior and Posterior probability of bugs present\")\n",
367366
"plt.ylabel(\"Probability\")\n",

0 commit comments

Comments
 (0)