get_bkg_source_plot

sherpa.astro.ui.get_bkg_source_plot(id=None, lo=None, hi=None, bkg_id=None)

Return the data used by plot_bkg_source.

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.
  • lo (number, optional) – The low value to plot.
  • hi (number, optional) – The high value to plot.
  • bkg_id (int or str, optional) – Identify the background component to use, if there are multiple ones associated with the data set.
Returns:

source – An object representing the data used to create the plot by plot_bkg_source.

Return type:

a sherpa.astro.plot.BkgSourcePlot instance

Raises:

See also

get_bkg_model_plot()
Return the data used by plot_bkg_model.
plot_bkg_model()
Plot the model for the background of a PHA data set.
plot_bkg_source()
Plot the model expression for the background of a PHA data set.