plot¶
- sedfitter.plot(input_fits, output_dir=None, select_format=('N', 1), plot_max=None, plot_mode='A', sed_type='interp', show_sed=True, show_convolved=False, x_mode='A', y_mode='A', x_range=(1.0, 1.0), y_range=(1.0, 2.0), plot_name=True, plot_info=True, format='pdf', sources=None, memmap=True, dpi=None)¶
Make SED plots
- Parameters:
- input_fitsstr or
sedfitter.fit_info.FitInfo
or iterable This should be either a file containing the fit information, a
sedfitter.fit_info.FitInfo
instance, or an iterable containingsedfitter.fit_info.FitInfo
instances.- output_dirstr, optional
If specified, plots are written to that directory
- select_formattuple, optional
Tuple specifying which fits should be plotted. See the documentation for a description of the tuple syntax.
- plot_maxint, optional
Maximum number of fits to plot
- plot_modestr, optional
Whether to plot all fits in a single plot (‘A’) or one fit per plot (‘I’)
- sed_typestr, optional
- Which SED should be shown:
largest: show the SED for the largest aperture specified.
smallest: show the SED for the smallest aperture specified.
largest+smallest: show the SEDs for the largest and smallest apertures specified.
all: show the SEDs for all apertures specified.
interp: interpolate the SEDs to the correct aperture at each wavelength (and interpolated apertures in between), so that a single composite SED is shown.
- show_sedbool, optional
Show the SEDs
- show_convolvedbool, optional
Show convolved model fluxes
- x_modestr, optional
Whether to automatically select the wavelength range (‘A’), or whether to use manually set values (‘M’).
- x_rangetuple, optional
If x_mode is set to ‘M’, this is the range of wavelengths to show. If x_mode is set to ‘A’, this is the marging to add around the wavelength range (in dex).
- y_modestr, optional
Whether to automatically select the flux range (‘A’), or whether to use manually set values (‘M’).
- y_rangetuple, optional
If y_mode is set to ‘M’, this is the range of fluxes to show. If y_mode is set to ‘A’, this is the marging to add around the flux range (in dex).
- plot_namebool, optional
Whether to show the source name on the plot(s).
- plot_infobool, optional
Whether to show the fit information on the plot(s).
- formatstr, optional
The file format to use for the plot, if output_dir is specified.
- sourceslist, optional
If specified, gives the list of sources to plot. If not set, all sources will be plotted
- dpiint, optional
The resolution of the figure to save
- input_fitsstr or