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:
axmatplotlib.axes.Axes

Axes instance in which to draw the plot

resultdictionary

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

linestr

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)

filterspecint

width in pixel of the box-filter to apply on the input spectrum

marginfloat

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

minsnrfloat

minimum SNR to display the line names

infolinelist or None

list of line parameters (from lines table) to display, only used with line=NAME

infozlist or None

list of global parameters (from ztable) to display

labelparsdictionary

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