Accessing the data used to create a plotĀ
Virtually all of the plot_xxx functions have an associated get_xxx_plot function which returns a Pyton object containing the data that is used to create the plot. This can be used if you want to create your own version of the plot, or if you want to use the data for further analysis (accessing PHA data in units of keV or Angstrom can be surprisingly complex to do, so using the plot infrastructure is often the quickest way to get at the information). The data for multi-plot routines like plot_fit_resid is accessed with the individual component calls - so in this case get_fit_plot and get_resid_plot.
Plot | Data access | Comments |
---|---|---|
plot_chisqr | get_chisqr_plot | |
plot_data | get_data_plot | |
plot_delchi | get_delchi_plot | |
plot_fit | get_fit_plot | The return structure contains dataplot and modelplot attributes which contains the plotted data. |
plot_kernel | get_kernel_plot | |
plot_psf | get_psf_plot | |
plot_ratio | get_ratio_plot | |
plot_resid | get_resid_plot |
Plot | Data access | Comments |
---|---|---|
plot_bkg_chisqr | get_bkg_chisqr_plot | |
plot_bkg_delchi | get_bkg_delchi_plot | |
plot_bkg_fit | get_bkg_fit_plot | The return structure contains dataplot and modelplot attributes which contains the plotted data. |
plot_bkg | get_bkg_plot | |
plot_bkg_ratio | get_bkg_ratio_plot | |
plot_bkg_resid | get_bkg_resid_plot | |
plot_bkg_source | get_bkg_source_plot |
Plot | Data access |
---|---|
plot_model | get_model_plot |
plot_source | get_source_plot |
plot_model_component | get_model_component_plot |
plot_source_component | get_source_component_plot |
plot_order | get_order_plot |
There are also a number of specialized commands:
Plot | Data access |
---|---|
plot_arf | get_arf_plot |
plot_rmf | get_rmf_plot |
plot_pvalue | get_pvalue_plot |
plot_pdf | get_pdf_plot |
plot_cdf | get_cdf_plot |
plot_scatter | get_scatter_plot |
plot_trace | get_trace_plot |