plot_eig

pydl.pydlspec2d.spec1d.plot_eig(filename, title='Unknown', save=True)[source]

Plot spectra from an eigenspectra/template file.

Parameters:
filenamestr

Name of a FITS file containing eigenspectra/templates.

titlestr, optional

Title to put on the plot.

savebool, optional

If True, save the plot to a PNG file.

Returns:
tuple

The figure and axes objects created.

Raises:
ValueError

If an unknown template type was input in filename.