plot_source¶
- 
sherpa.ui.plot_source(id=None, **kwargs)¶
- Plot the source expression for a data set. - This function plots the source model for a data set. This does not include any instrument response (e.g. a convolution created by set_psf). - 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.
- replot (bool, optional) – Set to Trueto use the values calculated by the last call to plot_source. The default isFalse.
- overplot (bool, optional) – If Truethen add the data to an exsiting plot, otherwise create a new plot. The default isFalse.
 - See also - get_source_plot()
- Return the data used by plot_source.
- get_default_id()
- Return the default data set identifier.
- plot()
- Create one or more plot types.
- plot_model()
- Plot the model for a data set.
- plot_source_component()
- Plot a component of the source expression for a data set.
- set_xlinear()
- New plots will display a linear X axis.
- set_xlog()
- New plots will display a logarithmically-scaled X axis.
- set_ylinear()
- New plots will display a linear Y axis.
- set_ylog()
- New plots will display a logarithmically-scaled Y axis.
 - Examples - Plot the unconvolved source model for the default data set: - >>> plot_source() - Overplot the source model for data set 2 on data set 1: - >>> plot_source(1) >>> plot_source(2, overplot=True)