convert_to_markers#
- pyxem.utils.vectors.convert_to_markers(peaks, signal)[source]#
Convert a set of (flattened) peaks to a set of markers for plotting. Note that the function below only works for 4D signals.
- Parameters:
peaks (DiffractionVectors2D) – The peaks to be converted to markers
signal (pyxem.signals.Signal2D) – The 4-D signal to plot the peaks on