Last modified: December 2023

URL: https://cxc.cfa.harvard.edu/sherpa/ahelp/plot_psf.html
Jump to: Description · Example · PARAMETERS · Bugs · See Also


AHELP for CIAO 4.16 Sherpa

plot_psf

Context: psfs

Synopsis

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

Syntax

plot_psf(id=None, replot=False, overplot=False, clearwindow=True,
**kwargs)

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

Description

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


Example

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()

PARAMETERS

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)?

Bugs

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

See Also

psfs
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