The bitmap images are generated with the script
import LinePattern
for i in range (3,30):
LinePattern.example (i)
Once converted to GIFs the animation is created with the script
import GIFAnimator
import MakeFileList
path = 'c:\\python22\\work\\example\\'
flist = MakeFileList.MakeFileList(path, 'graph', 'gif', 3, 27)
gif = GIFAnimator.buildFromFiles(flist)
gif.setDelay(50)
gif.writeToFile('c:\\python22\\work\\example\\graphs.gif')