mioXpektron.plotting.plot
Classes
|
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:
objectHelper 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.
- 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.