@@ -168,12 +168,12 @@ def get_element_matrices(element_nodes, D, rho, t):
168168print ("\n Generating combined mode animation..." )
169169
170170num_modes_to_animate = 6
171- animation_duration = 5 .0
172- fps = 30
171+ animation_duration = 4 .0
172+ fps = 20
173173num_frames = int (animation_duration * fps )
174174displacement_scale = L * 0.15 # Scale displacements for better visibility
175175
176- fig , axes = plt .subplots (1 , num_modes_to_animate , figsize = (15 , 8 ))
176+ fig , axes = plt .subplots (1 , num_modes_to_animate , figsize = (7.5 , 4 ))
177177
178178triangles = []
179179for el in elements :
@@ -215,7 +215,7 @@ def animate(frame):
215215 ax .set_ylim (fixed_ylim )
216216 ax .set_aspect ('equal' )
217217
218- ax .triplot (triang , '--' , color = 'gray' , linewidth = 0.5 )
218+ ax .triplot (triang , '--' , color = 'gray' , linewidth = 0.25 )
219219
220220 psi = eigenvectors [:, i ]
221221 omega = angular_freq [i ]
@@ -234,7 +234,7 @@ def animate(frame):
234234 edgecolors = 'k' , cmap = 'viridis' , linewidth = 0.5 ,
235235 vmin = 0 , vmax = vmax_values [i ])
236236
237- ax .set_title (f'Mode { i + 1 } \n { frequencies [i ]:.2f} Hz' , fontsize = 15 )
237+ ax .set_title (f'Mode { i + 1 } \n { frequencies [i ]:.2f} Hz' , fontsize = 7.5 )
238238 ax .set_xticks ([])
239239 ax .set_yticks ([])
240240
0 commit comments