show_drizzle_HDU

grizli.multifit.show_drizzle_HDU(hdu, diff=True, mask_segmentation=False, average_only=False, scale_size=1, cmap='viridis_r', show_labels=True, width_ratio=0.2, **kwargs)[source]

Make a figure from the multiple extensions in the drizzled grism file.

Parameters
hduHDUList

HDU list output by drizzle_grisms_and_PAs.

diffbool

If True, then plot the stacked spectrum minus the model.

mask_segmentationbool

Mask the segmentation image of the beams with the drizzled weight. Not used.

average_onlybool

If True, then only show the average spectrum for each grism.

scale_sizefloat

Scale the size of the figure.

cmapstr

Colormap for the 2D spectra.

show_labelsbool

Show the wavelength labels.

width_ratiofloat

Width ratio of the kernel and spectrum panels.

kwargsdict

Passed to imshow.

Returns
figFigure

The figure.