animate

Animate graphs

Syntax

animate 
filename
,
graphs(_all | g1 g2 g3...)
[imagickpath(path) delay(#) noloop showcommand keepeps]

Required

   
graphs(_all \| g1 g2 g3...) graphs to be added to the movie

Optional

   
imagickpath(path) path of ImageMagick
delay(#) milliseconds between frames
noloop no loop of movie
showcommand display ImageMagick command
keepeps keep .eps files

Description

animate produces .eps files for each graph and adds them together to an animated-gif filename. Command requires ImageMagick to be installed on the computer.

Examples

. webuse uslifeexp
. graph drop _all
. forvalues i = 1900(10)2000 {
      scatter le year if year <= `i', xscale(range(1900 2000)) name(le`i')
}
. animate lifemovie, graphs(_all)

nwcommands version 3.17.6, 9 November 2026 (check your installed version)


Back to top

nwcommands is free software under the GNU General Public License, version 3, as are the model packages nwsaom, nwergm, nwdynam and nwrem. Citing and licenses · Get help · GitHub. Issues with the core go to the nwcommands repository; issues with a model package go to that package's own repository.

This site uses Just the Docs, a documentation theme for Jekyll.