make_anim.py.html CLAWPACK  
 Source file:   make_anim.py
 Directory:   /Users/rjl/git/clawpack/classic/examples/acoustics_1d_example1
 Converted:   Tue Aug 21 2018 at 17:00:44   using clawcode2html
 This documentation file will not reflect any later changes in the source file.

 
"""
Make stand-alone animations similar to the movies in the plots directory.

First run `make plots` so that directory exists with png files for the
individual frames.
"""

import matplotlib
matplotlib.use('Agg')
import os

from clawpack.visclaw import animation_tools

# file name prefix obtained from this directory name:
this_dir = os.path.split(os.getcwd())[-1]
file_name_prefix = this_dir + '_'

# Plots directory:  (first run `make plots`)
plotdir = '_plots'

# Search for all movie files in plotdir to determine what movies to make:
fignos = 'all'

# The type of outputs desired (from 'mp4', 'html', 'rst', the latter for use
# with Sphinx documentation (reStructured text):
outputs = ['html','rst','mp4']

# Size of figure:
figsize = (5,4)

# Dots per inch:
dpi = None

# Frames per second (for mp4 file only):
fps = 5

animation_tools.make_anim_from_plotdir(plotdir=plotdir, fignos=fignos,
        outputs=outputs, file_name_prefix=file_name_prefix,
        figsize=figsize, dpi=dpi, fps=fps)