pyopenms.Plotting.mirror_plot_spectrum

pyopenms.Plotting.mirror_plot_spectrum(spec_top: pyopenms.pyopenms_8.MSSpectrum, spec_bottom: pyopenms.pyopenms_8.MSSpectrum, alignment: Optional[List] = None, spectrum_top_kws: Optional[Dict] = None, spectrum_bottom_kws: Optional[Dict] = None, ax=None)

Mirror plot two MS/MS spectra.

spec_topMSSpectrum

The spectrum to be plotted on the top. Reads annotations from the first StringDataArray if it has the same length as the number of peaks.

spec_bottomMSSpectrum

The spectrum to be plotted on the bottom. Reads annotations from the first StringDataArray if it has the same length as the number of peaks.

alignmentOptional[List], optional

List of aligned peak pairs.

spectrum_top_kwsOptional[Dict], optional

Keyword arguments for Plotting.plot_spectrum of top spectrum.

spectrum_bottom_kwsOptional[Dict], optional

Keyword arguments for Plotting.plot_spectrum of bottom spectrum.

axOptional[plt.Axes], optional

Axes instance on which to plot the spectrum. If None the current Axes instance is used.

plt.Axes

The matplotlib Axes instance on which the spectra are plotted.