from astropy.visualization import quantity_support
from astropy import units as u
from matplotlib import pyplot as plt
import numpy as np
from m4opt.missions import uvex

wavelength = np.linspace(1250, 3000) * u.angstrom
with quantity_support():
    ax = plt.axes()
    for label, bandpass in uvex.detector.bandpasses.items():
        ax.plot(wavelength, bandpass(wavelength), label=label)
    ax.legend()