Last modified: December 2020

Jump to: Description · Example · PARAMETERS · Bugs · See Also

AHELP for CIAO 4.13 Sherpa v1


Context: psfs


Plot the 1D PSF model applied to a data set.


plot_psf(id=None, replot=False, overplot=False, clearwindow=True,

id - int or str, optional
replot - bool, optional
overplot - bool, optional
clearwindow - bool, optional


The `plot_kernel` function shows the data used to convolve the model.


Create a model (a step function) that is convolved by a gaussian, and display the PSF:

>>> dataspace1d(1, 10, step=1, dstype=Data1D)
>>> set_model(steplo1d.stp)
>>> stp.xcut = 4.4
>>> load_psf('psf1', gauss1d.gline)
>>> set_psf('psf1')
>>> gline.fwhm = 1.2
>>> plot_psf()


The parameters for this function are:

Parameter Definition
id The data set. If not given then the default identifier is used, as returned by `get_default_id` .
replot Set to True to use the values calculated by the last call to `plot_psf` . The default is False .
overplot If True then add the data to an existing plot, otherwise create a new plot. The default is False .
clearwindow Should the existing plot area be cleared before creating this new plot (e.g. for multi-panel plots)?


See the bugs pages on the Sherpa website for an up-to-date listing of known bugs.

See Also

contour_kernel, contour_psf, delete_psf, get_psf, get_psf_contour, get_psf_image, get_psf_plot, image_kernel, image_psf, load_conv, load_psf, plot_kernel, set_psf, show_kernel, show_psf