The sherpa.plot module
A visualization interface to Sherpa.
Classes provide access to common plotting tasks, which is done by the
plotting backend defined in the options.plot_pkg
setting of the
Sherpa configuration file. Note that plot objects can be created
and used even when there is no available plot backend. It is just
that no graphical display will be created.
Which backend is used?
When this module is first imported, Sherpa tries to import the
backends installed with Sherpa in the order listed in the
options.plot_pkg
setting from the sherpa.rc
startup file.
The first module that imports successfully is set as the active
backend. The following command prints the name and the location
on disk of that module:
>>> from sherpa import plot
>>> print(plot.backend)
Change the backend
After the initial import, the backend can be changed by loading one of the plotting backends shipped with sherpa (or any other module that provides the same interface):
>>> import sherpa.plot.pylab_backend
>>> plot.backend = sherpa.plot.pylab_backend
Classes
|
Base class for line plots |
|
Base class for contour plots |
|
Base class for point plots |
Base class for histogram plots |
|
Create 1D histogram plots of data values. |
|
Display a model as a histogram. |
|
Display a source model as a histogram. |
|
|
Display the probability density of an array. |
|
Display the cumulative distribution of an array. |
Derived class for creating 1D likelihood ratio distribution plots |
|
|
Create multiple plots. |
Multiple plots that share a common axis |
|
|
Create 1D plots of data values. |
Derived class for creating 1D PSF kernel data plots |
|
Create contours of 2D data. |
|
Derived class for creating 2D PSF Kernel contours |
|
Create 1D plots of model values. |
|
Create 1D plots of unconvolved model values. |
|
|
Derived class for creating 1D PSF kernel data plots |
Derived class for creating 2D model contours |
|
Derived class for creating 2D PSF contours |
|
Derived class for creating 2D model contours |
|
|
Combine data and model plots for 1D data. |
Derived class for creating 2D combination data and model contours |
|
Create plots of the delta-chi value per point. |
|
Create plots of the chi-square value per point. |
|
Create plots of the residuals (data - model) per point. |
|
Derived class for creating 2D residual contours (data-model) |
|
Create plots of the ratio of data to model per point. |
|
Derived class for creating 2D ratio contours (data divided by model) |
|