get_psf_plot¶
-
sherpa.ui.
get_psf_plot
(id=None, recalc=True)¶ 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.
recalc (bool, optional) – If
False
then the results from the last call to plot_psf (or get_psf_plot) are returned, otherwise the data is re-generated.
- 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()