pylbo.visualisation.eigenfunctions.eigfunc_handler

Classes

EigenfunctionHandler

Main handler for eigenfunctions.

Module Contents

class pylbo.visualisation.eigenfunctions.eigfunc_handler.EigenfunctionHandler(data: pylbo.data_containers.LegolasDataContainer, ef_ax: matplotlib.axes.Axes, spec_ax: matplotlib.axes.Axes)

Bases: pylbo.visualisation.eigenfunctions.eigfunc_interface.EigenfunctionInterface

Main handler for eigenfunctions.

update_plot()

Updates the plot when an event is triggered, clears and then redraws the functions. Rescaling of the axes is done automatically. Has to be overridden in a subclass.

_ef_needs_retransform(ef_name: str) bool
_get_title(ef_name)

Creates the title of the eigenfunction plot. If the eigenfunction is retransformed an ‘r’ is prepended if appropriate, along with Re/Im depending on the real/imaginary part shown.

Parameters:

ef_name (str) – The name of the eigenfunction as present in the datfile.

Returns:

name – The ‘new’ name for the eigenfunction, used as title.

Return type:

str