Skip to content

Commit 6910d7d

Browse files
committed
Update Prior and Posterior Bugs graph
The graph is misleading since the y axis maximum is 0.9 - the y axis should be [0.0-1.0] to better reflect that the left and right values are inverses of each other.
1 parent 196526d commit 6910d7d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Chapter1_Introduction/Chapter1.ipynb

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

0 commit comments

Comments
 (0)