def plot_spec(dict, radec, z):
    for i in range(len(dict['wavelength'])):
        wavelength = dict['wavelength'][i]
        sigma = dict['1sigma'][i]
        flux = dict['flux'][i]
        fig = plt.figure()
        plt.title(((str(radec) + str('; ')) + 'z={}'.format(z)))
        plt.xlabel('Rest-frame Wavelength [$\\AA$]')
        plt.ylabel('Flux [$10^{-17}$ erg$^{-1}$s$^{-1}$cm$^{-2}$$\\AA^{-1}$]')
        plt.plot(wavelength, flux)
        sigmaUpper = np.add(flux, sigma)
        sigmaLower = np.subtract(flux, sigma)
        plt.fill_between(wavelength, sigmaLower, sigmaUpper, color='grey', alpha=0.5)
        plt.show()
def plot_spec(dict, radec, z):
    for i in range(len(dict['wavelength'])):
        wavelength = dict['wavelength'][i]
        sigma = dict['1sigma'][i]
        flux = dict['flux'][i]
        fig = plt.figure()
        plt.title(((str(radec) + str('; ')) + 'z={}'.format(z)))
        plt.xlabel('Rest-frame Wavelength [$\\AA$]')
        plt.ylabel('Flux [$10^{-17}$ erg$^{-1}$s$^{-1}$cm$^{-2}$$\\AA^{-1}$]')
        plt.plot(wavelength, flux)
        sigmaUpper = np.add(flux, sigma)
        sigmaLower = np.subtract(flux, sigma)
        plt.fill_between(wavelength, sigmaLower, sigmaUpper, color='grey', alpha=0.5)
        plt.show()