Ask Your Question

What to do to save a plot from notebook?

asked 2017-11-17 02:24:37 -0500

anonymous user


updated 2017-11-20 02:26:47 -0500

Is it possible to export a plot, preferable in a vector format from a notebook?

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted

answered 2017-11-17 02:39:29 -0500

Sébastien gravatar image

updated 2017-11-17 02:42:29 -0500

svg is a vector format:

sage: G = plot(sin(x), 0, 2*pi)

Other options are:

sage:'filename.png')  # not a vector format

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

sage: pwd
edit flag offensive delete link more

answered 2017-11-17 02:59:51 -0500

vdelecroix gravatar image


sage: G = Graphics()          # an graphic
sage:'my_file.pdf')   # save in pdf format
sage:'my_file.svg')   # save in svg format
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2017-11-17 02:24:37 -0500

Seen: 73 times

Last updated: Nov 20 '17