Skip to content

Commit

Permalink
FIX: update matplotlib syntax to v3.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Sep 20, 2023
1 parent 2a898ad commit b9aed33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/lecture09.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2151,7 +2151,7 @@
"residual = y - result.best_fit\n",
"# plt.plot(x, residual, 'bo', label='Residuals')\n",
"fig, ax = plt.subplots()\n",
"ax.stem(x, residual, markerfmt=\" \", use_line_collection=True)\n",
"ax.stem(x, residual, markerfmt=\" \")\n",
"plt.xlabel(\"x\")\n",
"plt.ylabel(\"residual\")\n",
"plt.show()"
Expand All @@ -2173,7 +2173,7 @@
"residualUnc = (y - result.best_fit) / y_error\n",
"# plt.plot(x, residual, 'bo', label='Residuals')\n",
"fig, ax = plt.subplots()\n",
"ax.stem(x, residualUnc, markerfmt=\" \", use_line_collection=True)\n",
"ax.stem(x, residualUnc, markerfmt=\" \")\n",
"plt.xlabel(\"x\")\n",
"plt.ylabel(\"Normalise residual (Pull distributions)\")\n",
"plt.show()"
Expand Down

0 comments on commit b9aed33

Please sign in to comment.