>
> Here is an example that works.  It plots an image.  What I had in mind was 
> to replace P.show(...) by P.save(...) and, instead of displaying the image, 
> saving it.
> The replacement dDidn't work out though.  Needless to say, the script 
> below runs on Sage's notebook.
>
>
As I expected, P.save() worked fine.  You do have to provide a 
filename/location.

sage: P.save('/Users/myname/test.png')

produced a nice file in exactly that location.  However, if you don't and 
just put a name, it will save the file in whatever directory, and if you 
don't provide an extension, it will save it as a "Sage object".

sage: P.save('hi')
sage: 
Exiting Sage (CPU time 0m25.67s, Wall time 3m23.43s).
gc04855:sage $ ls
COPYING.txt autom4te.cache config.status home src
Makefile bootstrap configure local tmp
README.txt build configure.ac logs upstream
VERSION.txt config dist m4
aclocal.m4 config.log hi.sobj sage

Note the "hi.sobj". Hope this helps!

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" 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-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to