Sage: Ticket #16654: Choose common coordinate system for animations
https://trac.sagemath.org/ticket/16654
<p>
As <a class="closed ticket" href="https://trac.sagemath.org/ticket/16570" title="defect: Animate example looks broken (closed: fixed)">#16570</a> demonstrates, choosing a suitable coordinate system for all frames of an animations can be a non-trivial task. Quite often one will explicitely specify <code>xmin</code>, <code>xmax</code>, <code>ymin</code> and <code>ymax</code> to set a fixed range for all frames, which may require some trial and error and is therefore more work that I'd like, particularly given the fact that creating animations may be a rather time-consuming process.
</p>
<p>
What I'd like to see instead is an automatic choice of coordinate system based on the content of all frames. I haven't looked at the implementation yet, but conceptually I imagine the following: create a dummy Graphics group containing all the frames suprtimposed over one another. Then do the auto-layout magic for that whole thing to determine suitable ranges for the axes. Then pass these to the individual frames.
</p>
<p>
Since there are situations where one specifically wants the coordinate system to move, I'd like this automatic adjustment to be configurable. But catering for the most common application, I'd make it opt-out, not opt-in. So <code>animate()</code> could have some boolean flag, called <code>common_system</code> or <code>common_ranges</code> or even <code>common_coordinate_system</code>, which defaults to <code>True</code> but could be explicitely set to <code>False</code>.
</p>
<p>
Of course, choosing a default different from what we have so far would mean breaking backwards compatibility. But since there is no way to deprecate a given default setting, I see no way to avoid that unless we want to pass that option as a part of red tape boilerplate to every call in practical applications, just for the sake of compatibility.
</p>
en-usSagehttps://trac.sagemath.org/chrome/site/logo_sagemath_trac.png
https://trac.sagemath.org/ticket/16654
Trac 1.1.6vbraun_spamSun, 10 Aug 2014 16:51:03 GMTmilestone changed
https://trac.sagemath.org/ticket/16654#comment:1
https://trac.sagemath.org/ticket/16654#comment:1
<ul>
<li><strong>milestone</strong>
changed from <em>sage-6.3</em> to <em>sage-6.4</em>
</li>
</ul>
Ticket