Skip to content

Commit

Permalink
Merge pull request #101 from CUQI-DTU/fix_legend_in_B02
Browse files Browse the repository at this point in the history
Fix legend on plot ci for B02
  • Loading branch information
nabriis authored Dec 6, 2023
2 parents 512b1be + 353c3c6 commit 294d763
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions training/Basics/B02_Forward_Models.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1367,9 +1367,7 @@
"metadata": {},
"outputs": [],
"source": [
"xs.plot_ci(95)\n",
"x_exact.plot()\n",
"plt.legend(['Credibility interval', 'Mean of prior','x_exact'])"
"xs.plot_ci(95, exact=x_exact)"
]
},
{
Expand Down Expand Up @@ -1405,9 +1403,8 @@
"metadata": {},
"outputs": [],
"source": [
"ys.plot_ci(95)\n",
"y_obs.plot()\n",
"plt.legend(['Credibility interval', 'Mean of push-forward prior', 'Actual data'])"
"ys.plot_ci(95, exact=y_obs)\n",
"plt.legend(['Mean of push-forward prior', 'Actual data', '95% Credibility interval', ])"
]
},
{
Expand Down Expand Up @@ -1438,7 +1435,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.5"
"version": "3.8.5"
},
"vscode": {
"interpreter": {
Expand Down

0 comments on commit 294d763

Please sign in to comment.