plot_1d_frame_array

behavenet.plotting.cond_ae_utils.plot_1d_frame_array(ims_list, markers=None, im_kwargs=None, marker_kwargs=None, plot_ims=True, plot_diffs=True, figsize=None, save_file=None, format='pdf')[source]

Plot list of list of interpolated images output by interpolate_1d() in a 2d grid.

Parameters:
  • ims_list (list of list) – each inner list element holds an np.ndarray of shape (y_pix, x_pix)

  • markers (list of list or NoneType, optional) – each inner list element holds an array-like object with values (y_pix, x_pix); if None, markers are not plotted on top of frames

  • im_kwargs (dict or NoneType, optional) – kwargs for matplotlib.pyplot.imshow() function (vmin, vmax, cmap, etc)

  • marker_kwargs (dict or NoneType, optional) – kwargs for matplotlib.pyplot.plot() function (markersize, markeredgewidth, etc)

  • plot_ims (bool, optional) – plot images

  • plot_diffs (bool, optional) – plot differences

  • figsize (tuple, optional) – (width, height) in inches

  • save_file (str or NoneType, optional) – figure saved if not None

  • format (str, optional) – format of saved image; ‘pdf’ | ‘png’ | ‘jpeg’ | …