get_psf_plot

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

Return the data used by plot_psf.

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:psf_plot
Return type:a sherpa.plot.PSFPlot instance
Raises:sherpa.utils.err.IdentifierErr – If a PSF model has not been created for the data set.

See also

get_kernel_plot()
Return the data used by plot_kernel.
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:

>>> pplot = get_psf_plot()
>>> pplot.plot()