Skip to content

Commit 5d2c3d8

Browse files
committed
Plotting in microns
1 parent 0268f7d commit 5d2c3d8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tutorials/euclid_access/3_Euclid_intro_1D_spectra.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ import matplotlib.pyplot as plt
5656
5757
from astropy.io import fits
5858
from astropy.table import QTable
59+
from astropy import units as u
5960
from astropy.visualization import quantity_support
6061
6162
from astroquery.ipac.irsa import Irsa
@@ -128,7 +129,7 @@ quantity_support()
128129
```
129130

130131
```{code-cell} ipython3
131-
plt.plot(spectra['WAVELENGTH'], spectra['SIGNAL'])
132+
plt.plot(spectra['WAVELENGTH'].to(u.micron), spectra['SIGNAL'])
132133
plt.title(obj_id)
133134
```
134135

0 commit comments

Comments
 (0)