Last modified: December 2022

URL: https://cxc.cfa.harvard.edu/sherpa/ahelp/plot_bkg_fit_ratio.html
AHELP for CIAO 4.15 Sherpa

plot_bkg_fit_ratio

Context: plotting

Synopsis

Plot the fit results, and the data/model ratio, for the background of a PHA data set.

Syntax

plot_bkg_fit_ratio(id=None, bkg_id=None, replot=False, overplot=False,
clearwindow=True, **kwargs)

id - int or str, optional
bkg_id - int or str, optional
replot - bool, optional
overplot - bool, optional
clearwindow - bool, optional

Description

This creates two plots - the first from `plot_bkg_fit` and the second from `plot_bkg_ratio` - for a data set.


Example

Plot the background fit and the ratio of the background to this fit for the default data set:

>>> plot_bkg_fit_ratio()

PARAMETERS

The parameters for this function are:

Parameter Definition
id The data set that provides the data. If not given then the default identifier is used, as returned by `get_default_id` .
bkg_id Identify the background component to use, if there are multiple ones associated with the data set.
replot Set to True to use the values calculated by the last call to `plot_bkg_fit_ratio` . The default is False .
overplot If True then add the data to an existing plot, otherwise create a new plot. The default is False .
clearwindow Should the existing plot area be cleared before creating this new plot (e.g. for multi-panel plots)?

Notes

For the residual plot, the ylog setting is ignored, and the Y axis is drawn using a linear scale.

Changes in CIAO

Changed in CIAO 4.13

The overplot option now works.

Added in CIAO 4.12


Bugs

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

See Also

plotting
plot_bkg_fit, plot_bkg_fit_delchi, plot_bkg_fit_resid