pylbo.visualisation.modes.cartesian_3d

Module Contents

Classes

CartesianSlicePlot3D

Class for handling Cartesian 3D plots of the eigenmode solution.

class pylbo.visualisation.modes.cartesian_3d.CartesianSlicePlot3D(data: pylbo.visualisation.modes.mode_data.ModeVisualisationData, u2: numpy.ndarray, u3: numpy.ndarray, time: float, slicing_axis: str, figsize: tuple[int, int], vmin: float = None, vmax: float = None, **kwargs)[source]

Bases: pylbo.visualisation.modes.cartesian_2d.CartesianSlicePlot2D

Class for handling Cartesian 3D plots of the eigenmode solution.

Parameters:
  • data (ModeVisualisationData) – The data for the visualisation.

  • u2 (np.ndarray) – The \(y\) coordinate of the eigenmode solution.

  • u3 (np.ndarray) – The \(z\) coordinate of the eigenmode solution.

  • time (float) – The time at which the eigenmode solution is calculated.

  • slicing_axis (str) – The axis along which the eigenmode solution is sliced.

  • figsize (tuple[int, int]) – The size of the figure.

  • vmin (float) – The minimum value of the colourbar. If None, the minimum value of the solution is used.

  • vmax (float) – The maximum value of the colourbar. If None, the maximum value of the solution is used.

_create_figure_layout(figsize: tuple[int, int]) tuple[matplotlib.figure.Figure, dict][source]
_create_cbar_axes(width: float) matplotlib.axes.Axes[source]
_validate_u2(u2: numpy.ndarray, *args, **kwargs) numpy.ndarray[source]
_validate_u3(u3: numpy.ndarray, *args, **kwargs) numpy.ndarray[source]
set_plot_arrays() None[source]
calculate_mode_solution(efdata: numpy.ndarray, u2: numpy.ndarray, u3: numpy.ndarray, t: numpy.ndarray) numpy.ndarray[source]
draw_eigenfunction() None[source]
draw_solution() None[source]
add_axes_labels() None[source]
draw_textboxes() None[source]
_clear_contours() None[source]
_update_view(updated_solution: numpy.ndarray) None[source]
_update_view_clims(solution: numpy.ndarray) None[source]
_set_t_txt(t)[source]