sdynpy.core.sdynpy_geometry.DeflectionShapePlotter

class DeflectionShapePlotter(geometry, deflection_shape_data, plot_kwargs, background_plotter_kwargs={'auto_update': 0.01}, undeformed_opacity=0.25, starting_scale=1.0, deformed_opacity=1.0, num_curves=50)[source]

Bases: ShapePlotter

Class used to plot animated deflection shapes from spectra

__init__(geometry, deflection_shape_data, plot_kwargs, background_plotter_kwargs={'auto_update': 0.01}, undeformed_opacity=0.25, starting_scale=1.0, deformed_opacity=1.0, num_curves=50)[source]

Create a DeflectionShapePlotter object to plot shapes

Parameters
  • geometry (Geometry) – Geometry on which the shapes will be plotted

  • deflection_shape_data (NDDataArray) – Data array containing the deflection shapes to plot

  • plot_kwargs (dict) – Keyword arguments passed to the Geometry.plot function

  • background_plotter_kwargs (dict, optional) – Keyword arguments passed to the BackgroundPlotter constructor. The default is {‘auto_update’:0.01}.

  • undeformed_opacity (float, optional) – Opacity of the undeformed geometry. Set to zero for no undeformed geometry. The default is 0.25.

  • starting_scale (float, optional) – Starting scale of the shapes on the plot. The default is 1.0.

  • num_curves (int, optional) – Maximum number of curves to plot on the frequency selector. Default is 50

Methods

__init__(geometry, deflection_shape_data, ...)

Create a DeflectionShapePlotter object to plot shapes

modify_abscissa()

save_multiline_animation([filename, ...])

Attributes

modify_abscissa()[source]
save_multiline_animation(filename=None, frame_rate=20, phase_change_per_frame=0.087, frequency_change_per_frame=0.5, start_phase=0.0, start_frequency=None, end_frequency=None, individual_images=False)[source]