mioXpektron.plotting.plot

Classes

PlotPeak(mz_values, raw_intensities, sample_name)

Helper for plotting raw and processed spectra.

class mioXpektron.plotting.plot.PlotPeak(mz_values, raw_intensities, sample_name, group=None, corrected_intensities=None)[source]

Bases: object

Helper for plotting raw and processed spectra.

Parameters:
  • mz_values (array-like of shape (n,)) – m/z axis aligned with the supplied intensities.

  • raw_intensities (array-like of shape (n,)) – Primary intensity trace used for plotting.

  • sample_name (str) – Label shown on the plot title.

  • group (str | None, optional) – Additional grouping label appended to the title.

  • corrected_intensities (array-like of shape (n,), optional) – Denoised/baseline-corrected intensities. When provided, displayed as the comparison trace and used as the default signal for peak detection.

mz_values: Iterable[float]
raw_intensities: Iterable[float]
sample_name: str
group: str | None = None
corrected_intensities: Iterable[float] | None = None
plot(*, mz_min=None, mz_max=None, show_peaks=True, peak_height=None, peak_prominence=None, min_peak_width=1, max_peak_width=None, corrected_intensities=None, figsize=(10, 6), save_plot=True)[source]

Plot raw and optional corrected spectra for the configured sample.

Parameters:
zoom(report, *, xlim, intensity=None, window_ppm=50.0, figsize=(6, 4), save_plot=True)[source]

Plot a zoomed segment with calibration-peak diagnostics.

Parameters: