pylbo.visualisation.eigenfunctions.eigfunc_handler

Classes

EigenfunctionHandler

Main handler for eigenfunctions.

Module Contents

class pylbo.visualisation.eigenfunctions.eigfunc_handler.EigenfunctionHandler(data, ef_ax, spec_ax)

Bases: pylbo.visualisation.eigenfunctions.eigfunc_interface.EigenfunctionInterface

Main handler for eigenfunctions.

_function_names
_check_data_is_present()

Checks if the required data is present to draw for example eigenfunctions, is overloaded in subclasses.

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.

_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

_mark_points_without_data_written()

For dataseries, it is possible that not all datasets in the series have eigenfunctions associated with them. This routine will toggle a change in the opacity value for datapoints with no functions, so they are clearly distinguishable from those who do have them.