Skip to content

Commit

Permalink
Merge pull request #301 from fusion-energy/adding-legend-to-plot
Browse files Browse the repository at this point in the history
added legend to plot for nuclear data at different temperatures
  • Loading branch information
jon-proximafusion authored Nov 14, 2024
2 parents 0bca75a + 847850a commit fc62845
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions tasks/task_01_cross_sections/4_Doppler_broadening.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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."
]
},
{
Expand Down Expand Up @@ -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')"
]
},
{
Expand Down Expand Up @@ -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')"
]
},
{
Expand All @@ -140,7 +144,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "cadquery-dev",
"language": "python",
"name": "python3"
},
Expand All @@ -154,7 +158,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.12"
"version": "3.12.7"
}
},
"nbformat": 4,
Expand Down

0 comments on commit fc62845

Please sign in to comment.