Shamrock plot utility functions.
| 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_str : str
Glob pattern matching image files.
render_gif : bool, optional
Whether to render the animation.
dpi : int, optional
Dots per inch for the figure.
interval : int, optional
Delay between frames in milliseconds.
repeat_delay : int, 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.
Definition at line 31 of file __init__.py.