<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 animatesvg
Create animation from a list of svg files or a list of matplotlib figures.
From svg file list
Step1:  From matplotlib figure list
<ASSISTANT_TASK:>
Python Code:
from beampy import *
# Remove quiet=True to get beampy compilation outputs
doc = document(quiet=True)
with slide('Animation from svg files'):
    animatesvg("./ressources/svg_anims/*.svg", width="600")
display_matplotlib(gcs())
Explanation: animatesvg
Create animation from a list of svg files or a list of matplotlib figures.
From svg file list
End of explanation
import pylab as p
with slide('Animation from matplotlib figures'):
    anim_figs = []
    for i in range(20):
        fig = p.figure()
        x =  p.linspace(0,2*p.pi)
        p.plot(x, p.sin(x+i))
        p.plot(x, p.sin(x+i+p.pi))
        p.close(fig)
        anim_figs += [fig]
    animatesvg(anim_figs)
save('./examples_html_outputs/animatesvg.html')
Explanation: From matplotlib figure list
End of explanation
<END_TASK>