bionet.utils.animate.animate2

bionet.utils.animate.animate2(data_1, data_2, step=1, delay=0)

Animate two sequence of frames simultaneously.

Animate two sequences of Ny x Nx bitmap frames stored in two M x Ny x Nx data arrays.

Parameters:

data_1 : numpy.ndarray

Sequence of M 2D bitmaps stored as an array with shape (M, Ny, Nx).

data_2 : numpy.ndarray

Sequence of M 2D bitmaps stored as an array with shape (M, Ny, Nx).

step : int

Skip step frames between each displayed frames.

delay : float

Wait delay seconds between each frame refresh.