agepy.spec.coincidence.plot_coinc_map

plot_coinc_map(coincmap, xedges, yedges, figsize=None, cmap='YlOrRd', title=None, norm=None, vmin=1, vmax=None, num=None, xlabel='early electron kinetic energy', ylabel='late electron kinetic energy', interactive=False)

Plot a coincedence map and its projections on the x and y axes.

Parameters:
coincmapnumpy.ndarray

2d array of shape (m,n) containing the coincidence map. In most cases this will be the output of numpy.histogram2d().

xedgesnumpy.ndarray

1d array of shape (m+1) containing the bin edges of the x-axis.

yedgesnumpy.ndarray

1d array of shape (n+1) containing the bin edges of the y-axis.

figsizepython:tuple, optional

Figure size in inches. Default: None

cmapmatplotlib.colors.Colormap or python:str or python:None, optional

Colormap passed to matplotlib.pyplot.pcolormesh(). Default: ‘YlOrRd’

titlepython:str, optional

Title of the figure. Default: None

normpython:str or matplotlib.colors.Normalize or python:None, optional

Normalization passed to matplotlib.pyplot.pcolormesh(). Default: None

vmin, vmaxpython:float, optional

Minimum and maximum value for the colormap passed to matplotlib.pyplot.pcolormesh(). Default: 1, None

num: int or str or matplotlib.figure.Figure, optional

Figure identifier passed to matplotlib.pyplot.figure().

xlabel, ylabelpython:str, optional

Labels of the x and y axes. Default: “early electron kinetic energy”, “late electron kinetic energy”

Returns:
figmatplotlib.figure.Figure

Matplotlib Figure object.

ax: python:tuple of matplotlib.axes.Axes

Tuple of matplotlib Axes objects containing the coincidence map, the projection on the x-axis and the projection on the y-axis.