Skip to content

Commit

Permalink
Update source_from_images.ipynb
Browse files Browse the repository at this point in the history
Make the plot function actually use its input. It only worked by accident.

Untested; edited from github. Living on the edge
  • Loading branch information
hugobuddel authored Sep 13, 2024
1 parent 1c7ecdb commit 56cbad2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/5_liners/source_from_images.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@
" plt.figure(figsize=(12, 5))\n",
" plt.subplot(121)\n",
" wave = range(3000, 25000)\n",
" plt.plot(wave, image_source.spectra[0](wave))\n",
" plt.plot(wave, src.spectra[0](wave))\n",
" plt.xlabel(\"Wavelength [Angstrom]\")\n",
" plt.ylabel(\"Flux [ph/s/cm2/Angstrom]\")\n",
" plt.subplot(122)\n",
" plt.imshow(image_source.fields[0].data)"
" plt.imshow(src.fields[0].data)"
]
},
{
Expand Down

0 comments on commit 56cbad2

Please sign in to comment.