plot_fit¶
- pyplatefit.plot_fit(ax, result, line_only=False, abs_line=False, pcont=False, line=None, start=False, filterspec=0, margin=50, legend=True, iden=True, label=True, minsnr=0, infoline=None, infoz=None, labelpars={'dl': 2.0, 'dyl': 0.05, 'size': 10, 'sizel': 10, 'xl': 0.05, 'y': 0.95, 'yl': 0.95})¶
plot fitting results obtained with
fit_spec
- Parameters:
- ax
matplotlib.axes.Axes
Axes instance in which to draw the plot
- result
dictionary
result of
fit_spec
- line_onlybool
plot the continuum subtracted spectrum and its fit
- abs_linebool
plot the absorption lines and continuum fit
- pcontbool
plot the polynomial and absorption line fit
- line
str
name of the line to zoom on (if None display all the spectrum)
- startbool
plot also the initial guess before the fit (only if line is not None)
- filterspec
int
width in pixel of the box-filter to apply on the input spectrum
- margin
float
size in A to add on each side of the line for the zoom option
- legendbool
display the legend
- idenbool
display the emission lines
- labelbool
display the line name
- minsnr
float
minimum SNR to display the line names
- infoline
list
orNone
list of line parameters (from lines table) to display, only used with line=NAME
- infoz
list
orNone
list of global parameters (from ztable) to display
- labelpars
dictionary
parameters used for label display
dl: offset in wavelength
y: location in y (0-1)
size: font size
xl: x location for info
yl, dyl: y location and offset for info
sizel: info font size
- ax