- sherpa.astro.ui.plot_order(id=None, orders=None, replot=False, overplot=False, clearwindow=True, **kwargs)¶
Plot the model for a data set convolved by the given response.
Some data sets - such as grating PHA data - can have multiple responses. The
plot_orderfunction acts like
plot_model, in that it displays the model after passing through a response, but allows the user to select which response to use.
orders (optional) – Which response to use. The argument can be a scalar or array, in which case multiple curves will be displayed. The default is to use all orders.
overplot (bool, optional) – If
Truethen add the data to an existing plot, otherwise create a new plot. The default is
clearwindow (bool, optional) – Should the existing plot area be cleared before creating this new plot (e.g. for multi-panel plots)?
Display the source model convolved by the first response for the default data set:
Plot the source convolved through the first and second responses for the second data set (separate curves for each response):
>>> plot_order(2, orders=[1, 2])
Add the orders plot to a model plot:
>>> plot_model() >>> plot_order(orders=[2, 3], overplot=True)