Hello all,
I woud like to be able to include animated plots, produced for
instance with sagemath. I tried the code below, (and some mild
variations, like a.apng() at the end) in a very naive attempt. Of course
it did not work, from the error message it looks like an .svg image
was expected.
This is not the only way to produce animated plots with sage, though. Also, let me point out that I do not want an interact. In a .pdf I guess it would be included either as an animated gif, or even a movie, for viewing on a computer / phone / tables, or one would have to provide a preview, in the same manner as for sageplot variant 3D, for instance.
<image xml:id="sageplot-example-animate" width="80%">
<description>Une animation</description>
<sageplot aspect="1.0">
x = SR.var("x")
sines = [plot(c*sin(x), (-2*pi,2*pi), color=Color(c,0,0), ymin=-1, ymax=1) for c in sxrange(0,1,.2)]
a = animate(sines)
a.apng()
</sageplot>
</image>
--
You received this message because you are subscribed to the Google Groups "PreTeXt development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-dev/MTAwMDAxMC5iZWV6ZXI.1655742466%40quikprotect.