Plotting



next up previous contents
Next: Getting help Up: An overview of Previous: Fitting

Plotting

XSPEC plotting is performed using the PLT interface. There are two basic commands: plot and iplot. The plot command makes a plot and returns the user to the XSPEC prompt, while the iplot command leaves the user in the interactive plotting interface, thus allowing the user to edit the plot. A variety of different quantities may be plotted, including the data and the current model; the fit residuals; the ratio of data to model; the contributions to the fit statistic; the theoretical model; the unfolded (incident) spectrum; the detector efficiency; and the fit- statistic contours. All data plots can have an x-axis of channels, energy, or wavelength, which are specified with setplot channel, setplot energy, setplot wavelength respectively. The plotting device to be used is set using setplot device or çpd. Separate spectra may be added together and channels binned up (for plotting purposes only) using setplot group and setplot rebin. A stack of PLT commands can be created and manipulated with setplot command, setplot delete, and setplot list. This command stack then is applied to every plot. A plot can be spooled to the printer by issuing the command @hard at the PLT prompt.



Keith Arnaud
Fri Nov 18 16:30:43 EST 1994