[sage-support] Re: question about visualization/animation of surfaces

2009-01-16 Thread Justin C. Walker
On Jan 16, 2009, at 9:40 AM, mabshoff wrote: > > > > On Jan 16, 9:36 am, Carl Witty wrote: >> On Jan 15, 10:52 pm, "Justin C. Walker" wrote: > > Hi, > >>> If the temp files are truly temp files (i.e., not of interest >>> when the >>> process that creates them exits), then there are Python ca

[sage-support] Re: question about visualization/animation of surfaces

2009-01-16 Thread Justin C. Walker
On Jan 16, 2009, at 9:36 AM, Carl Witty wrote: > > On Jan 15, 10:52 pm, "Justin C. Walker" wrote: >> If the temp files are truly temp files (i.e., not of interest when >> the >> process that creates them exits), then there are Python calls that >> help: the temp files can be created and unlin

[sage-support] Re: question about visualization/animation of surfaces

2009-01-16 Thread mabshoff
On Jan 16, 9:36 am, Carl Witty wrote: > On Jan 15, 10:52 pm, "Justin C. Walker" wrote: Hi, > > If the temp files are truly temp files (i.e., not of interest when the   > > process that creates them exits), then there are Python calls that   > > help: the temp files can be created and unlinke

[sage-support] Re: question about visualization/animation of surfaces

2009-01-16 Thread Carl Witty
On Jan 15, 10:52 pm, "Justin C. Walker" wrote: > If the temp files are truly temp files (i.e., not of interest when the   > process that creates them exits), then there are Python calls that   > help: the temp files can be created and unlinked, so that at exit,   > they vanish.  In fact, they are

[sage-support] Re: question about visualization/animation of surfaces

2009-01-16 Thread Marshall Hampton
We do have ticket #1483, http://trac.sagemath.org/sage_trac/ticket/1483, which could be warped into adding support for ffmpeg. I am also interested in learning how to use javascript to do it but my javascript skills are still too low. One of my goals for this year is to become much better at jav

[sage-support] Re: question about visualization/animation of surfaces

2009-01-15 Thread Justin C. Walker
On Jan 15, 2009, at 22:58 , mabshoff wrote: > > > > On Jan 15, 10:52 pm, "Justin C. Walker" wrote: >> On Jan 15, 2009, at 19:52 , William Stein wrote: > > > > Hi, > >> If the temp files are truly temp files (i.e., not of interest when >> the >> process that creates them exits), then there ar

[sage-support] Re: question about visualization/animation of surfaces

2009-01-15 Thread mabshoff
On Jan 15, 10:52 pm, "Justin C. Walker" wrote: > On Jan 15, 2009, at 19:52 , William Stein wrote: Hi, > If the temp files are truly temp files (i.e., not of interest when the   > process that creates them exits), then there are Python calls that   > help: the temp files can be created and u

[sage-support] Re: question about visualization/animation of surfaces

2009-01-15 Thread Justin C. Walker
On Jan 15, 2009, at 19:52 , William Stein wrote: > > On Thu, Jan 15, 2009 at 7:34 PM, mabshoff > wrote: >> >> >> >> On Jan 15, 7:31 pm, "Justin C. Walker" wrote: >>> On Jan 15, 2009, at 19:02 , mabshoff wrote: >> >> >> Just use /tmp or DOT_SAGE/tmp, but create a directory in it so you >>

[sage-support] Re: question about visualization/animation of surfaces

2009-01-15 Thread Justin C. Walker
On Jan 15, 2009, at 19:34 , mabshoff wrote: > > > > On Jan 15, 7:31 pm, "Justin C. Walker" wrote: >> On Jan 15, 2009, at 19:02 , mabshoff wrote: > > > >>> Just use /tmp or DOT_SAGE/tmp, but create a directory in it so you >>> don't clobber other jobs of the same kind. It might be a good idea

[sage-support] Re: question about visualization/animation of surfaces

2009-01-15 Thread William Stein
On Thu, Jan 15, 2009 at 7:43 PM, Marshall Hampton wrote: > > ok, so this should work on sagenb: For the record, I would be *very* happy if you made it so the sage animate(...) command could do this automatically. It's fine that ffmpeg would have to be installed -- just give a graceful error mes

[sage-support] Re: question about visualization/animation of surfaces

2009-01-15 Thread William Stein
On Thu, Jan 15, 2009 at 7:34 PM, mabshoff wrote: > > > > On Jan 15, 7:31 pm, "Justin C. Walker" wrote: >> On Jan 15, 2009, at 19:02 , mabshoff wrote: > > > >> > Just use /tmp or DOT_SAGE/tmp, but create a directory in it so you >> > don't clobber other jobs of the same kind. It might be a good

[sage-support] Re: question about visualization/animation of surfaces

2009-01-15 Thread Marshall Hampton
ok, so this should work on sagenb: {{{ %sh mkdir /tmp/username_temp }}} {{{ c = polytopes.icosahedron() label = 'Ico_movie' DATA = '/tmp/mh_temp/' # Numerical pi predefined for some speed npi = RDF(pi) #A rotation matrix def rot(i,j,th): q = matrix(RDF,3) for k in range(3): q[k,

[sage-support] Re: question about visualization/animation of surfaces

2009-01-15 Thread mabshoff
On Jan 15, 7:31 pm, "Justin C. Walker" wrote: > On Jan 15, 2009, at 19:02 , mabshoff wrote: > > Just use /tmp or DOT_SAGE/tmp, but create a directory in it so you > > don't clobber other jobs of the same kind. It might be a good idea to > > add some create_tmpdir() command in Sage that is gu

[sage-support] Re: question about visualization/animation of surfaces

2009-01-15 Thread Justin C. Walker
On Jan 15, 2009, at 19:02 , mabshoff wrote: > > > > On Jan 15, 6:49 pm, Marshall Hampton wrote: > Hi, > >> William Stein added ffmpeg to sagenb, so that isn't a problem now, >> but >> there is a permissions issue with writing to the DATA directory. So >> the code still won't work as is on sa

[sage-support] Re: question about visualization/animation of surfaces

2009-01-15 Thread CalcPage
OK, so I'll just run it on a local notebook(). Either I install Sage on my server or I can try your program on the Sage 3.1.1 live CD? TIA, A. Jorge Garcia Teacher & Professor Applied Mathematics, Physics & Computer Science Baldwin Senior High School & Nassau Community College _calcp...@a

[sage-support] Re: question about visualization/animation of surfaces

2009-01-15 Thread mabshoff
On Jan 15, 6:49 pm, Marshall Hampton wrote: Hi, > William Stein added ffmpeg to sagenb, so that isn't a problem now, but > there is a permissions issue with writing to the DATA directory.  So > the code still won't work as is on sagenb.  I haven't figured out what > a permissible directory is

[sage-support] Re: question about visualization/animation of surfaces

2009-01-15 Thread Marshall Hampton
William Stein added ffmpeg to sagenb, so that isn't a problem now, but there is a permissions issue with writing to the DATA directory. So the code still won't work as is on sagenb. I haven't figured out what a permissible directory is to dump the frames into, maybe someone else can comment on t

[sage-support] Re: question about visualization/animation of surfaces

2009-01-15 Thread CalcPage
Yup, its the comment lines, let me play with that. Regards, A. Jorge Garcia Teacher & Professor Applied Mathematics, Physics & Computer Science Baldwin Senior High School & Nassau Community College _calcp...@aol.com_ (mailto:calcp...@aol.com) _http://calcpage.tripod.com_ (http://calcpage.tri

[sage-support] Re: question about visualization/animation of surfaces

2009-01-15 Thread Marshall Hampton
The final step, using ffmpeg, requires that ffmpeg be installed and in the path, which probably isn't the case on sagenb.org. Otherwise I would think it would be OK. If you cut and paste you might get syntax errors from comment lines being broken, they just need to be on the same line or re-comm

[sage-support] Re: question about visualization/animation of surfaces

2009-01-15 Thread CalcPage
That's what I thought but I ran it on _www.sagenb.org_ (http://www.sagenb.org) and got errors. Should I run it in a Sage shell instead of a Sage notebook()? TIA, A. Jorge Garcia Teacher & Professor Applied Mathematics, Physics & Computer Science Baldwin Senior High School & Nassau Commu

[sage-support] Re: question about visualization/animation of surfaces

2009-01-15 Thread Jason Grout
calcp...@aol.com wrote: > Is this a python program independent of Sage or is it meant to be run > in a Sage notebook()? The program in the message you are replying to contains calls to many Sage objects and functions, so you will need Sage to run the program. Jason --~--~-~--~~---

[sage-support] Re: question about visualization/animation of surfaces

2009-01-15 Thread calcp...@aol.com
Is this a python program independent of Sage or is it meant to be run in a Sage notebook()? HTH, A. Jorge Garcia Teacher & Professor Applied Mathematics, Physics & Computer Science Baldwin Senior High School & Nassau Community College calcp...@aol.com http://calcpage.tripod.com ftp://centauri.b

[sage-support] Re: question about visualization/animation of surfaces

2008-12-17 Thread ggrafendorfer
Thanks a lot !! Wonderfull, this a really nice example containing many things to learn from ... greetings, Georg --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-un

[sage-support] Re: question about visualization/animation of surfaces

2008-12-17 Thread Marshall Hampton
Here is an example which might help. For it to work you need to install ffmpeg. It generates a rotating icosahedron movie. For what you want to do list_plot3d might be more appropriate: {{{ c = polytopes.icosahedron() label = 'Ico_movie' # Numerical pi predefined for some speed npi = RDF(pi)

[sage-support] Re: question about visualization/animation of surfaces

2008-12-09 Thread ggrafendorfer
Hi Marshall, thanks for the answer, if you once have the frames I also know these two projects, but I did not try them out yet: http://www.onyxbits.de/giftedmotion http://www.lcdf.org/~eddietwo/gifsicle/ Is it possible to make the frames, i.e. .jpg or .png files with tachyon from within sage or

[sage-support] Re: question about visualization/animation of surfaces

2008-12-08 Thread Marshall Hampton
The nicest looking solution I have found is to make frames with tachyon and then animate the results with ffmpeg. I have meant to create some how-to documentation for the things I have done so far but I do not have the time right now, hopefully I will soon. The options for ffmpeg are somewhat c