cbi_toolbox.utils.plotting

The plotting module contains helper functions to plot animated movies in matplotlib.

class cbi_toolbox.utils.plotting.AnimImshow(images, interval=100)[source]

Bases: object

Create an animated figure over an array of images.

Parameters
  • images (np.ndarray) – Array containing the images, shape [t, x, y].

  • interval (int, optional) – Frame duration in ms, by default 100.

save_to_gif(path)[source]

Save the animated figure as a gif file.

Parameters

path (str) – Path to the file to save.