shamrock.utils.plot.show_image_sequence#

shamrock.utils.plot.show_image_sequence(glob_str, render_gif=True, dpi=200, interval=50, repeat_delay=10, fig=None)#

Create a matplotlib animation from a sequence of image files.

Available only if matplotlib and PIL are installed.

Parameters#

glob_strstr

Glob pattern matching image files.

render_gifbool, optional

Whether to render the animation.

dpiint, optional

Dots per inch for the figure.

intervalint, optional

Delay between frames in milliseconds.

repeat_delayint, optional

Delay before repeating the animation.

Raises#

FileNotFoundError : if no images are found for the glob pattern

Returns#

matplotlib.animation.FuncAnimation or None

Animation object on rank 0, otherwise None.

Killing sphere for SPH simulation

Killing sphere for SPH simulation