#11313: Animated GIF plots should repaint bgcolor after each frame
------------------------+---------------------------------------------------
Reporter: kini | Owner: jason, was
Type: defect | Status: needs_review
Priority: major | Milestone: sage-4.7.1
Component: graphics | Keywords: plot, animate, imagemagick
Work_issues: | Upstream: N/A
Reviewer: | Author: Keshav Kini
Merged: | Dependencies:
------------------------+---------------------------------------------------
Comment(by kini):
Here we are:
{{{
#!python
t = var('t')
def frame(theta):
r = 2
x = r*(t - sin(t))
y = r*(1 - cos(t))
plot = parametric_plot((x, y), (t,0,theta), rgbcolor=hue(0.6))
krug = circle((2*theta, r), r)
tocka = point((r*(theta - sin(theta)), r*(1 - cos(theta))),
pointsize=30, color='red')
return plot+krug+tocka;
animacija = animate([frame(x) for x in srange(0.1, 5*pi, 0.1)])
animacija.show(delay=10, iterations=0)
}}}
Credit to user `v-v` on freenode. This produces the image shown above on
Sage 4.7 (for example on sagenb.org). My local alpha2 (old, I know...)
does something kind of alarming... I'll test with the latest dev version
once I get it built.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11313#comment:10>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.