pylbo.visualisation.spectra.spectrum_comparison
Module Contents
Classes
Subclass to compare two spectra. |
- class pylbo.visualisation.spectra.spectrum_comparison.SpectrumComparisonPlot(ds1, ds2, figsize, custom_figure, lock_zoom, use_residuals, **kwargs)[source]
Bases:
pylbo.visualisation.spectra.spectrum_figure.SpectrumFigure
Subclass to compare two spectra.
- Parameters:
ds1 (LegolasDataSet) – First dataset, will be placed on the left side.
ds2 (LegolasDataSet) – Second dataset for comparison, will be placed on the right side.
figsize (tuple) – Figure size used when creating a window, analogous to matplotlib.
custom_figure (tuple) – The custom figure to use in the form (fig, axes).
lock_zoom (bool) – If True, locks the zoom for both spectrum plots.
use_residuals (bool) – If True, colors the spectrum points based on the residuals.
- panel1
The spectrum instance associated with the left side.
- Type:
SingleSpectrumPlot
- panel2
The spectrum instance associated with the right side.
- Type:
SingleSpectrumPlot
- set_x_scaling(x_scaling)[source]
Overloads parent method, calls x scaling setter for each panel.
- Parameters:
x_scaling (int, float, complex, numpy.ndarray) – The scaling to apply to the x-axis
- set_y_scaling(y_scaling)[source]
Overloads parent method, calls y scaling setter for each panel.
- Parameters:
y_scaling (int, float, complex, numpy.ndarray) – The scaling to apply to the y-axis
- add_eigenfunctions()[source]
Adds the eigenfunctions for both datasets and merges the mpl callbacks.