neutronpy.instrument.PlotInstrument.plot_slice

static PlotInstrument.plot_slice(axis, qslice, projections, u, v, num=0)[source]

Class method for plotting individual projections. Plots both slices and projections.

Parameters:
axis : matplotlib_axis

Axis to which to plot the selected projection

qslice : str

The projection to plot. ‘QxQy’, ‘QxW’ or ‘QyW’.

projections : dict

Projections as generated by Instrument.calc_projections

u : ndarray(3)

First orientation vector.

v : ndarray(3)

Second orientation vector.

num : int, optional

If multiple projections are present, choose which one to plot