import matplotlib.pyplot as plt
plt.style.use('seaborn-v0_8-darkgrid')
from marvin.tools.maps import Maps
maps = Maps('1-22301')
spax = maps.getSpaxel(x=28, y=24, xyorig='lower', cube=True, modelcube=True)
ax = spax.flux.plot()
ax.plot(spax.full_fit.wavelength, spax.full_fit.value)
ax.legend(list(ax.get_lines()), ['observed', 'model'])
ax.axis([7100, 7500, 0.3, 0.65])
