get_model_plot
- sherpa.astro.ui.get_model_plot(id: IdType | None = None, recalc=True)
Return the data used to create the model plot.
- Parameters:
id (int, str, or None, optional) – The data set that provides the data. If not given then the default identifier is used, as returned by
get_default_id
.recalc (bool, optional) – If
False
then the results from the last call toplot_model
(orget_model_plot
) are returned, otherwise the data is re-generated.
- Returns:
An object representing the data used to create the plot by
plot_model
. The return value depends on the data set (e.g. 1D binned or un-binned).- Return type:
instance
See also
get_model_plot_prefs
Return the preferences for plot_model.
plot_model
Plot the model for a data set.
Examples
>>> mplot = get_model_plot() >>> print(mplot)