neutronpy.data.Scans.pcolor

Scans.pcolor(x, y, z='detector', clims=None, color_norm='linear', cmap='jet', show_plot=True)[source]

Create a false colormap for a coloction of scans.

The y-direction is always what varies between scans.

Parameters:
x : str

Name of one of the columns that is in each scan to plot along the x-axis.

y : str

Name of one of the columns that is in each scan to plot along the y-axis. This parameter varies between scans, but is constant over an individual scan.

z : str, optional

Name of one of the data columns that is in each scan to plot along the z-axis. Default: ‘detector’.

clims : array_like, optional

An array of two floats, where the first is the minimum color scale, the second is the maximum of the color scale. By default the maximum and minimum of all data. Default: None

color_norm : str, optional

Select a ‘log’ or ‘linear’ scale. Default: ‘linear’.

cmap : str, optional

A matplotlib colormaps. Default: ‘jet’.