Ask Your Question

What to do to save a plot from notebook?

asked 2017-11-17 09:24:37 +0200

anonymous user


updated 2017-11-20 09:26:47 +0200

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 09:39:29 +0200

Sébastien gravatar image

updated 2017-11-17 09:42:29 +0200

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 09:59:51 +0200

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 09:24:37 +0200

Seen: 1,086 times

Last updated: Nov 20 '17