#12827: Expand Animation class to accept more graphics types
-------------------------------------+-------------------------------------
Reporter: niles | Owner: jason, was
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-5.13
Component: graphics | Resolution:
Keywords: animate, | Merged in:
graphics, 3D | Reviewers:
Authors: Niles Johnson | Work issues: docstrings, testing,
Report Upstream: N/A | think about img protocol
Branch: | Commit:
u/niles/ticket/12827 | 4bd63210b646fa15f908d41fd7500e7f881a6058
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Changes (by niles):
* status: needs_work => needs_review
Old description:
> Currently the `Animation` class only animates `Graphics` objects, and
> throws an error for `Graphics3d`, `GraphicsArray`, and `Tachyon` objects.
> The behavior of this class should be improved to accept any Sage object
> whose `save` method produces an image.
>
> See this [https://groups.google.com/forum/?fromgroups#!topic/sage-
> devel/9TzVOj70ADU sage-devel] thread for the beginning of this
> discussion, including some discussion of possible solutions.
>
> == Apply ==
>
> * [attachment:trac_12827_animate3d_save_image.patch]
New description:
Currently the `Animation` class only animates `Graphics` objects, and
throws an error for `Graphics3d`, `GraphicsArray`, and `Tachyon` objects.
The behavior of this class should be improved to accept any Sage object
whose `save` method produces an image.
See this [https://groups.google.com/forum/?fromgroups#!topic/sage-
devel/9TzVOj70ADU sage-devel] thread for the beginning of this discussion,
including some discussion of possible solutions.
--
Comment:
The new branch is ready for review! It rebases the previous patch to sage
5.13.beta4. It includes other minor improvements to documentation and
internal methods.
With this patch, the `Animate` class can create an animation from any
iterable of objects which have a `save_image` method. Such a method is
added to several of the base classes for different graphics types:
`sage.plot.graphics.Graphics`, `sage.plot.graphics.GraphicsArray`,
`sage.plot.plot3d.base.Graphics3d`, `sage.plot.plot3d.tachyon.Tachyon`.
--
Ticket URL: <http://trac.sagemath.org/ticket/12827#comment:14>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.