make_interpolated_multipanel¶
- behavenet.plotting.cond_ae_utils.make_interpolated_multipanel(ims, save_file, markers=None, text=None, text_title=None, frame_rate=20, n_cols=3, scale=1, **kwargs)[source]¶
Make a multi-panel latent space interpolation movie.
- Parameters:
ims (
listoflistofnp.ndarray) – each list element is used to for a single panel, and is another list that contains arrays of shape (y_pix, x_pix)save_file (
str) – absolute path of save file; does not need file extension, will automatically be saved as mp4. To save as a gif, include the ‘.gif’ file extension in save_file.markers (
listofarray-like, optional) – each list element is used for a single panel, and is an array of size (n_frames, 2) which specifies the (x, y) coordinates of a marker on each frame for that paneltext (
listofarray-like, optional) – each list element is used for a single panel, and is an array of size (n_frames) which specifies text printed in the lower left corner of each frame for that paneltext_title (
listofarray-like, optional) – each list element is used for a single panel, and is an array of size (n_frames) which specifies text printed in the upper left corner of each frame for that panelframe_rate (
float, optional) – frame rate of saved movien_cols (
int, optional) – movie is n_cols panels widescale (
float, optional) – width of panel is (scale / 2) incheskwargs – arguments are additional arguments to
make_interpolated(), like ‘markersize’, ‘markeredgewidth’, ‘markeredgecolor’, etc.