Skip to content

Commit

Permalink
Merge pull request #357 from pep-dortmund/uncertainties
Browse files Browse the repository at this point in the history
fixed order of variables
  • Loading branch information
ChAr-De authored Sep 25, 2023
2 parents 88e031b + ba93811 commit 74b6084
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions python/uncertainties.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": false
},
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
Expand Down Expand Up @@ -256,9 +254,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": false
},
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline\n",
Expand Down Expand Up @@ -326,15 +322,13 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": false
},
"metadata": {},
"outputs": [],
"source": [
"x = np.linspace(0, 10)\n",
"y = unp.uarray(np.linspace(0, 5), 1)\n",
"\n",
"ax, fig = plt.subplots(1, 1, layout=\"constrained\")\n",
"fig, ax = plt.subplots(1, 1, layout=\"constrained\")\n",
"\n",
"# ax.plot(x, y, 'rx')\n",
"ax.errorbar(x, unp.nominal_values(y), yerr=unp.std_devs(y), fmt=\"rx\");"
Expand Down Expand Up @@ -478,5 +472,5 @@
}
},
"nbformat": 4,
"nbformat_minor": 1
"nbformat_minor": 4
}

0 comments on commit 74b6084

Please sign in to comment.