pylag.processing.animation module

Tools to assist with the creation of animations

class pylag.processing.animation.Animation[source]

Bases: object

Base class for animation objects.

make_animation(tidx_start, tidx_stop, tidx_step=1, fig_dirname='./figs', verbose=False)[source]

Create PyLag animation and save to file.

Parameters
  • tidx_start (int) – Starting time index.

  • tidx_stop (int) – Finishing time index.

  • tidx_step (int) – Time index step size.

  • fig_dirname (str) –

    Name of the directory in which to save individual figures.

    Default ./figs.

  • verbose (bool) –

    Print progress information.

    Default False.

make_image(n)[source]
class pylag.processing.animation.ParticleTrajectoryAnimation(output_filename, grid_metrics_filename, **kwargs)[source]

Bases: Animation

make_image(frame_idx, time_idx)[source]