Hi all,

I'm preparing to make a presentation to a few colleagues at work on
the capabilities of Sage.  In the presentation, I'm doing a
demonstration of Sage's ability to visualize 3D data via that line3d
command - in this case, an arbitrary spacecraft ephemeris.  However,
placing the line3d() call inside of a function that has the interact
attribute causes undesirable effects in having to reinitialize Jmol
and losing the viewpoint.  Is there any way to access the data of a
given Jmol object so that you can dynamically update the data used
without having to reinitialize the call to Jmol?

Thanks!

@interact
def ephemerisPlot(step=slider(srange(1,len(Data['Time']),1), default =
0)):
    show(line3d(zip(Data['X'][0:step],Data['Y'][0:step],Data['Z']
[0:step]), color='red')+line3d(zip(Data['X'],Data['Y'],Data
['Z']),opacity=0.1, color='blue')+sphere((Data['X'][step],Data['Y']
[step],Data['Z'][step]), size=200, color='blue')+sphere((0,0,0),
size=6378.1, color='white'))
-- 
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-support
URL: http://www.sagemath.org

Reply via email to