Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

svg is a vector format:

sage: G = plot(sin(x), 0, 2*pi)
sage: G.save('filename.svg')

Other options are:

sage: G.save('filename.pdf')
sage: G.save('filename.png')  # not a vector format
click to hide/show revision 2
No.2 Revision

svg is a vector format:

sage: G = plot(sin(x), 0, 2*pi)
sage: G.save('filename.svg')

Other options are:

sage: G.save('filename.pdf')
sage: G.save('filename.png')  # not a vector format

The files are saved in the present working directory (pwd):

sage: pwd
...