Ask Your Question
0

What to do to save a plot from notebook?

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

anonymous user

Anonymous

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

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
1

answered 2017-11-17 09:39:29 +0100

Sébastien gravatar image

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

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
...
edit flag offensive delete link more
0

answered 2017-11-17 09:59:51 +0100

vdelecroix gravatar image

Yes

sage: G = Graphics()          # an graphic
sage: G.save('my_file.pdf')   # save in pdf format
sage: G.save('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

Stats

Asked: 2017-11-17 09:24:37 +0100

Seen: 1,138 times

Last updated: Nov 20 '17