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 (list of list of np.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 (list of array-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 panel

  • text (list of array-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 panel

  • text_title (list of array-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 panel

  • frame_rate (float, optional) – frame rate of saved movie

  • n_cols (int, optional) – movie is n_cols panels wide

  • scale (float, optional) – width of panel is (scale / 2) inches

  • kwargs – arguments are additional arguments to make_interpolated(), like ‘markersize’, ‘markeredgewidth’, ‘markeredgecolor’, etc.