ssapy_toolkit.Plots.gifify

ssapy_toolkit.Plots.gifify(plot_func, *fargs, save_path=None, array_arg_indices=(0, 1), array_kw_keys=None, mode='cumulative', chunk_size=None, step=None, start=0, end=None, fps=12, loop=0, dpi=None, verbose=False, inject_ax=False, ax_arg_index=None, ax_kw_key=None, fixed_limits=True, fix_box_aspect_3d=True, **fkwargs)[source]

Animate any Matplotlib plot function by slicing two array args and compiling frames into a GIF.

Works with pyplot functions (return None), functions returning Axes, or Figure. If your function expects an Axes, set inject_ax=True and specify where with ax_arg_index (positional) or ax_kw_key (keyword).