Last modified: December 2025

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


AHELP for CIAO 4.18 Sherpa

get_kernel_plot

Context: plotting

Synopsis

Return the data used by plot_kernel.

Syntax

get_kernel_plot(id: int | str | None = None, recalc: bool = True)

Example

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

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

PARAMETERS

The parameters for this function are:

Parameter Type information Definition
id int, str, or None, optional The data set. If not given then the default identifier is used, as returned by `get_default_id` .
recalc bool, optional If False then the results from the last call to `plot_kernel` (or `get_kernel_plot` ) are returned, otherwise the data is re-generated.

Return value

The return value from this function is:

kernel_plot -- a `PSFKernelPlot` instance


Bugs

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

See Also

psfs
get_psf_plot, plot_kernel