Ask Your Question

What to do to save a plot from notebook?

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

anonymous user


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

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

Sébastien gravatar image

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

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


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

Seen: 41 times

Last updated: Nov 20