plotBin

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

Create a 1D Plot of bin count vs spectrum in a workspace.

This puts the spectrum number as the X variable, and the count in the particular bin # (in ‘indices’) as the Y value.

If indices is a tuple or list, then several curves are created, one for each bin index.

Args:
source: workspace or name of a workspace indices: bin number(s) to plot error_bars: bool, set to True to add error bars. type: Plot style 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.