eelbrain.plot.save_movie

eelbrain.plot.save_movie(figures, filename=None, time_dilation=4, tstart=None, tstop=None, **kwargs)

Save a movie combining multiple figures with moving time axes

Parameters:
  • figures (list[list[TimeSlicer]] | dict[tuple[int, int], TimeSlicer]) – Either a nested list of figures (each inner list is a row of plots) or a dictionary specifying placement as {(xpos, ypos): figure}.

  • filename (Path | str) – Filename for the movie (default will open a GUI for selecting the filename).

  • time_dilation (float) – Factor by which to stretch time (default 4). Time dilation is controlled through the frame-rate; if the fps keyword argument is specified, time_dilation is ignored.

  • tstart (float) – Time axis start (default is the earliest time in figures).

  • tstop (float) – Time axis stop (default includes the latest time in figures).

  • ...imageio.mimwrite() parmeters.

Notes

Might work best with:

configure(prompt_toolkit=False)