In [19]:
%matplotlib inline
from oedes.optical.spectra import *
import matplotlib.pylab as plt
import numpy as np
wavelength=AM0.xdata
plt.plot(wavelength*1e9,AM0(wavelength)*1e-9,label='AM0 (extraterrestial)')
plt.plot(wavelength*1e9,AM1_5_global(wavelength)*1e-9,label='AM1.5 (at ground, direct and diffused light)')
plt.plot(wavelength*1e9,AM1_5_direct(wavelength)*1e-9,label='AM1.5 (at ground, direct light only)')
plt.xlabel('Wavelength [nm]')
plt.ylabel(r'Power density [$\mathrm{W/nm/m^2}$]')
plt.legend(loc=0)
Out[19]: