get_bkg_fit_plot¶
-
sherpa.astro.ui.
get_bkg_fit_plot
(id=None, bkg_id=None)¶ Return the data used by plot_bkg_fit.
Parameters: - id (int or str, optional) – The data set that provides the data. If not given then the default identifier is used, as returned by get_default_id.
- bkg_id (int or str, optional) – Identify the background component to use, if there are multiple ones associated with the data set.
Returns: model – An object representing the data used to create the plot by plot_bkg_fit.
Return type: a sherpa.astro.plot.BkgFitPlot instance
Raises: sherpa.utils.err.ArgumentErr
– If the data set does not contain PHA data.sherpa.utils.err.IdentifierErr
– If thebkg_id
parameter is invalid.sherpa.utils.err.ModelErr
– If no model expression has been created for the background data.
See also
get_bkg_plot()
- Return the data used by plot_bkg.
get_bkg_model_plot()
- Return the data used by plot_bkg_model.
plot_bkg_fit()
- Plot the fit results (data, model) for the background of a PHA data set.