plot_eig¶
- pydl.pydlspec2d.spec1d.plot_eig(filename, title='Unknown', save=True)[source]¶
Plot spectra from an eigenspectra/template file.
- Parameters:
- filename
str Name of a FITS file containing eigenspectra/templates.
- title
str, optional Title to put on the plot.
- save
bool, optional If
True, save the plot to a PNG file.
- filename
- Returns:
tupleThe figure and axes objects created.
- Raises:
ValueErrorIf an unknown template type was input in
filename.