Ask Your Question

Revision history [back]

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

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
...