Changed animation script to generate a single figure.