Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

sdynpy.core.sdynpy_geometry.TransientPlotter

Signature

class sdynpy.core.sdynpy_geometry.TransientPlotter(geometry, displacement_data, displacement_scale=1.0, frames_per_second=20, undeformed_opacity=0.0, deformed_opacity=1.0, plot_kwargs={}, transformation_shapes=None, num_curves=50, show: bool = True, app=None, window_size=None, off_screen=None, allow_quit_keypress=True, toolbar=True, menu_bar=True, editor=False, update_app_icon=None, **kwargs)

Class used to plot transient deformations

Methods

NameSummary
__init__Create a TransientPlotter object to plot displacements over time
add_menu_barAdds the menu bar to the BackgroundPlotter
add_toolbarsAdds toolbars to the BackgroundPlotter
go_to_first_step
go_to_last_step
go_to_next_step
go_to_previous_step
modify_abscissa
play_animation
play_animation_reverse
save_animationSaves the current shape animation to a file
select_scaling_0p25Adjusts the current shape scaling by 0.25x
select_scaling_0p5Adjusts the current shape scaling by 0.5x
select_scaling_0p8Adjusts the current shape scaling by 0.8x
select_scaling_1Resets shape scaling to 1
select_scaling_1p25Adjusts the current shape scaling by 1.25x
select_scaling_2p0Adjusts the current shape scaling by 2x
select_scaling_4p0Adjusts the current shape scaling by 4x
select_speed_0p8Adjusts the current animation speed by 0.8
select_speed_1Resets animation speed to default quantities
select_speed_1p25Adjusts the current animation speed by 1.25
stop_animation
update_abscissa
update_abscissa_reverse
update_displacement

__init__

def sdynpy.core.sdynpy_geometry.TransientPlotter.__init__(self, geometry, displacement_data, displacement_scale=1.0, frames_per_second=20, undeformed_opacity=0.0, deformed_opacity=1.0, plot_kwargs={}, transformation_shapes=None, num_curves=50, show: bool = True, app=None, window_size=None, off_screen=None, allow_quit_keypress=True, toolbar=True, menu_bar=True, editor=False, update_app_icon=None, **kwargs)

Create a TransientPlotter object to plot displacements over time

Parameters

Returns

add_menu_bar

def sdynpy.core.sdynpy_geometry.TransientPlotter.add_menu_bar(self) -> None

Adds the menu bar to the BackgroundPlotter

add_toolbars

def sdynpy.core.sdynpy_geometry.TransientPlotter.add_toolbars(self) -> None

Adds toolbars to the BackgroundPlotter

go_to_first_step

def sdynpy.core.sdynpy_geometry.TransientPlotter.go_to_first_step(self)

go_to_last_step

def sdynpy.core.sdynpy_geometry.TransientPlotter.go_to_last_step(self)

go_to_next_step

def sdynpy.core.sdynpy_geometry.TransientPlotter.go_to_next_step(self)

go_to_previous_step

def sdynpy.core.sdynpy_geometry.TransientPlotter.go_to_previous_step(self)

modify_abscissa

def sdynpy.core.sdynpy_geometry.TransientPlotter.modify_abscissa(self)

play_animation

def sdynpy.core.sdynpy_geometry.TransientPlotter.play_animation(self)

play_animation_reverse

def sdynpy.core.sdynpy_geometry.TransientPlotter.play_animation_reverse(self)

save_animation

def sdynpy.core.sdynpy_geometry.TransientPlotter.save_animation(self, filename=None, frame_rate=20, individual_images=False, start_time=None, stop_time=None, step=None)

Saves the current shape animation to a file

Parameters

Returns

select_scaling_0p25

def sdynpy.core.sdynpy_geometry.TransientPlotter.select_scaling_0p25(self)

Adjusts the current shape scaling by 0.25x

select_scaling_0p5

def sdynpy.core.sdynpy_geometry.TransientPlotter.select_scaling_0p5(self)

Adjusts the current shape scaling by 0.5x

select_scaling_0p8

def sdynpy.core.sdynpy_geometry.TransientPlotter.select_scaling_0p8(self)

Adjusts the current shape scaling by 0.8x

select_scaling_1

def sdynpy.core.sdynpy_geometry.TransientPlotter.select_scaling_1(self)

Resets shape scaling to 1

select_scaling_1p25

def sdynpy.core.sdynpy_geometry.TransientPlotter.select_scaling_1p25(self)

Adjusts the current shape scaling by 1.25x

select_scaling_2p0

def sdynpy.core.sdynpy_geometry.TransientPlotter.select_scaling_2p0(self)

Adjusts the current shape scaling by 2x

select_scaling_4p0

def sdynpy.core.sdynpy_geometry.TransientPlotter.select_scaling_4p0(self)

Adjusts the current shape scaling by 4x

select_speed_0p8

def sdynpy.core.sdynpy_geometry.TransientPlotter.select_speed_0p8(self)

Adjusts the current animation speed by 0.8

select_speed_1

def sdynpy.core.sdynpy_geometry.TransientPlotter.select_speed_1(self)

Resets animation speed to default quantities

select_speed_1p25

def sdynpy.core.sdynpy_geometry.TransientPlotter.select_speed_1p25(self)

Adjusts the current animation speed by 1.25

stop_animation

def sdynpy.core.sdynpy_geometry.TransientPlotter.stop_animation(self)

update_abscissa

def sdynpy.core.sdynpy_geometry.TransientPlotter.update_abscissa(self)

update_abscissa_reverse

def sdynpy.core.sdynpy_geometry.TransientPlotter.update_abscissa_reverse(self)

update_displacement

def sdynpy.core.sdynpy_geometry.TransientPlotter.update_displacement(self, update_selector=True)