plotSpectrum

mantidplot.plotSpectrum(source, indices, distribution=0, error_bars=False, type=-1, window=None, clearWindow=False, waterfall=False)

Open a 1D Plot of a spectrum in a workspace.

This plots one or more spectra, with X as the bin boundaries, and Y as the counts in each bin.

Args:
source: workspace or name of a workspace indices: workspace index, or tuple or list of workspace indices to plot error_bars: bool, set to True to add error bars. type: curve style for plot (-1: unspecified; 0: line, default; 1: scatter/dots) window: window used for plotting. If None a new one will be created clearWindow: if is True, the window specified will be cleared before adding new curve waterfall: if True, plot as a waterfall if there is more than 1 curve
Returns:
A handle to window if one was specified, otherwise a handle to the created one. None in case of error.