get_kernel_plot

sherpa.astro.ui.get_kernel_plot(id=None)

Return the data used by plot_kernel.

Parameters

id (int or str, optional) – The data set. If not given then the default identifier is used, as returned by get_default_id.

Returns

kernel_plot

Return type

a sherpa.plot.PSFKernelPlot instance

Raises

sherpa.utils.err.IdentifierErr – If a PSF model has not been created for the data set.

See also

get_psf_plot()

Return the data used by plot_psf.

plot_kernel()

Plot the 1D kernel applied to a data set.

plot_psf()

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

Examples

Return the plot data and then create a plot with it:

>>> kplot = get_kernel_plot()
>>> kplot.plot()