Ask Your Question

Interaction and animation exportation

asked 2020-04-06 05:09:53 -0600

Cyrille gravatar image

updated 2020-04-06 09:07:45 -0600

This is an exemple extracted from the documentation

sines = [plot(csin(x), (-2pi,2*pi),

color=Color(c,0,0), ymin=-1,ymax=1)

for c in sxrange(0,1,.2)] a =

animate(sines) a # optional -- ImageMagick

I have 2 questions :

1) The main question. Is it possible to export the animation in a pdf ?

2) Can we do the same thing with @interact ?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2020-04-06 09:30:22 -0600

tmonteil gravatar image

updated 2020-04-06 09:40:21 -0600

Regarding animations, you can save your animation as an animated gif or an avi or mov video, and import them into your document:'<filename>.gif')'<filename>.avi')'<filename>.mov')

Note that if you use convert from imagemagick in a terminal, each frame will become its own page, which might be interesting as well :

convert  <filename>.gif <filename>.pdf

Note also, that most pdf reader won't show the animation.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2020-04-06 05:09:53 -0600

Seen: 51 times

Last updated: Apr 06 '20