Example 3 - Using the Built-In Animation FunctionΒΆ

In this example we will demonstrate how to use the built-in animation functionality. Animation in dorado is done using the matplotlib library (to keep dependencies at a minimum), however we note that many other animation libraries exist for Python that may provide greater functionality.

To use the animate_plots() function, you must have installed the ffmpeg image writer.

If you have run the previous example (Example 2 - Particles in Steady Flow (DeltaRCM)), then you can run the following and generate an animation similar to the one shown below.

Full example script available here.

>>> from dorado.routines import animate_plots
>>> animate_plots(0, 50, 'steady_deltarcm_example')