From 847850a694c48481636580ebf42a616b94dbe7ec Mon Sep 17 00:00:00 2001 From: Jon Shimwell Date: Wed, 13 Nov 2024 17:50:44 +0100 Subject: [PATCH] added legend to plot --- .../4_Doppler_broadening.ipynb | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/tasks/task_01_cross_sections/4_Doppler_broadening.ipynb b/tasks/task_01_cross_sections/4_Doppler_broadening.ipynb index d4bd5d9..1e69319 100644 --- a/tasks/task_01_cross_sections/4_Doppler_broadening.ipynb +++ b/tasks/task_01_cross_sections/4_Doppler_broadening.ipynb @@ -51,7 +51,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "This code block plots the total neutron cross section for Tungsten-186 at 3 different temperatures." + "This code block plots the total neutron cross section for Tungsten-186 at a single temperature." ] }, { @@ -80,7 +80,9 @@ "\n", "ax.set_yscale('log')\n", "ax.set_ylabel('Microscopic cross section [barns]')\n", - "ax.set_xlabel('Energy [eV]')" + "ax.set_xlabel('Energy [eV]')\n", + "ax.legend()\n", + "ax.set_title('Total cross section for W186 at 200K')" ] }, { @@ -125,7 +127,9 @@ "\n", "ax.set_yscale('log')\n", "ax.set_ylabel('Microscopic cross section [barns]')\n", - "ax.set_xlabel('Energy [eV]')" + "ax.set_xlabel('Energy [eV]')\n", + "ax.legend()\n", + "ax.set_title('Total cross section for Fe56 at 300K and 1000K')" ] }, { @@ -140,7 +144,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3 (ipykernel)", + "display_name": "cadquery-dev", "language": "python", "name": "python3" }, @@ -154,7 +158,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" + "version": "3.12.7" } }, "nbformat": 4,