bionet.utils.animate.animate_compare¶
- bionet.utils.animate.animate_compare(data_1, data_2, step=1, delay=0)¶
Animate two sequence of frames and their difference simultaneously.
Animate two sequences of Ny x Nx bitmap frames stored in two M x Ny x Nx data arrays simultaneously with their difference.
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.