Re: [sage-devel] Re: Animating 3D plots

2011-10-03 Thread Dan Drake
On Sun, 02 Oct 2011 at 09:08PM -0700, Aielyn wrote: > /devel/sagenb-main/sagenb/notebook/cell.py - between "elif > F.endswith('.jmol'):" and "elif F.endswith('.jmol.zip'):" lines > elif F.endswith('.jmol'): You should learn how to use "patch" (or Mercurial). It makes this kin

[sage-devel] Re: Animating 3D plots

2011-10-03 Thread Eviatar
Haven't tried it, but this functionality would be very useful. Have you considered making a ticket on Trac (http://trac.sagemath.org/sage_trac/)? Other people could then change the code. -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send

[sage-devel] Re: Animating 3D plots

2011-10-02 Thread Aielyn
Well, I've continued to work on it, if only because I thought it would be good to get experience with coding something like this. And I think I've improved things somewhat. I still haven't worked on fixing the problem with *how* it displays when it comes to animations (that is, I haven't sorted out

[sage-devel] Re: Animating 3D plots

2011-09-29 Thread Jonathan
> Second, it should actually be possible to create an interactive > version of Jmol that doesn't have to be re-loaded with each change. It > should be fairly trivial, for example, to delete a plot (pmesh) and > replace it with another one, without having to restart the entire load > process. It w

[sage-devel] Re: Animating 3D plots

2011-09-29 Thread Aielyn
OK, I've further tweaked the code, so it no longer produces excess label markers. I did this by having it only produce labels for the first frame - it then duplicates them for all the other frames. Unfortunately, I still haven't figured out how to make the frames match in terms of coordinates - I f

[sage-devel] Re: Animating 3D plots

2011-09-29 Thread Aielyn
OK, I actually have managed to hack up a modification to the 3d plotting base.pyx file, so that I can make it generate an animation in jmol... however, it's somewhat clunky, and produces a lot of redundant script content in the resulting file. However, using it, I have managed to get an animation r

[sage-devel] Re: Animating 3D plots

2011-09-28 Thread Aielyn
Looking into the issue of Jmol animation, it took me a while to figure it out... but it's actually not that complicated. Right now, a typical "SCRIPT" file might start like this: -- data "model list" 10 empty Xx -4.2829615 -5.2829615 -6.0 Xx 0.0 -5.2829615 -6.0 Xx 4.2829615 -5.

[sage-devel] Re: Animating 3D plots

2011-09-26 Thread Jonathan
For animations where the function is changing this is a good idea as we haven't implemented efficient communication with Jmol yet. For things like spinning, zooming, etc...that functionality is in the 3-D Jmol applet used for default 3-D display in the notebook. Jmol can do animation with user co