pyopenms.plotting.mirror_plot_spectrum#
- pyopenms.plotting.mirror_plot_spectrum(spec_top: MSSpectrum, spec_bottom: MSSpectrum, alignment: List | None = None, spectrum_top_kws: Dict | None = None, spectrum_bottom_kws: Dict | None = None, ax=None)#
Mirror plot two MS/MS spectra.
- Parameters:
spec_top (MSSpectrum) – 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_bottom (MSSpectrum) – 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.
alignment (Optional[List], optional) – List of aligned peak pairs.
spectrum_top_kws (Optional[Dict], optional) – Keyword arguments for Plotting.plot_spectrum of top spectrum.
spectrum_bottom_kws (Optional[Dict], optional) – Keyword arguments for Plotting.plot_spectrum of bottom spectrum.
ax (Optional[plt.Axes], optional) – Axes instance on which to plot the spectrum. If None the current Axes instance is used.
- Returns:
The matplotlib Axes instance on which the spectra are plotted.
- Return type:
plt.Axes