plot_npred_signal#
- gammapy.visualization.plot_npred_signal(dataset, ax=None, model_names=None, region=None, **kwargs)[source]#
Plot the energy distribution of predicted counts of a selection of models assigned to a dataset.
The background and the sum af all the considered models predicted counts are plotted on top of individual contributions of the considered models.
- Parameters
- datasetan instance of
MapDataset
The dataset from which to plot the npred_signal.
- ax
Axes
Axis object to plot on.
- model_nameslist of str
The list of models for which the npred_signal is plotted. Default is None. If None, all models are considered.
- region: `~regions.Region` or `~astropy.coordinates.SkyCoord`
Region used to reproject predicted counts. Default is None. If None, use the full dataset geometry.
- **kwargsdict
Keyword arguments to pass to
plot
.
- datasetan instance of
- Returns
- axes
Axes
Axis object
- axes