pylbo.visualisation.spectra.spectrum_figure
Classes
Class to handle the creation of a figure window dedicated to different types of |
Module Contents
- class pylbo.visualisation.spectra.spectrum_figure.SpectrumFigure(custom_figure: tuple[matplotlib.figure.Figure, matplotlib.axes.Axes] = None, figlabel: str = None, figsize: tuple[int, int] = None)
Bases:
pylbo.visualisation.figure_window.InteractiveFigureWindow
Class to handle the creation of a figure window dedicated to different types of spectrum figures.
- Parameters:
- ax
- x_scaling = 1.0
- y_scaling = 1.0
- _c_handler = None
- _ef_handler = None
- _ef_ax = None
- _def_handler = None
- _def_ax = None
- plot_props = None
- marker = None
- color = None
- markersize = None
- alpha = None
- draw()
Called on plot refreshing, the super call clears the figure and then redraws everything.
- set_x_scaling(x_scaling)
Sets the x scaling.
- Parameters:
x_scaling (int, float, complex, numpy.ndarray) – The scaling to apply to the x-axis.
- set_y_scaling(y_scaling)
Sets the y scaling.
- Parameters:
y_scaling (int, float, complex, numpy.ndarray) – The scaling to apply to the y-axis
- _set_plot_properties(properties)
Sets all relevant plot properties.
- Parameters:
properties (dict) – Dictionary containing the usual matplotlib properties (marker, color, markersize, alpha, etc.)
- abstract add_spectrum()
- abstract add_continua(interactive)
- abstract add_eigenfunctions()
- has_valid_continua(data)
- property c_handler
Property, returns the continua handler.
- property ef_handler
Property, returns the eigenfunction handler.
- property ef_ax
Property, returns the eigenfunction axes.