Ask Your Question
0

What to do to save a plot from notebook?

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

anonymous user

Anonymous

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
1

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)
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 02:59:51 -0600

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 02:24:37 -0600

Seen: 41 times

Last updated: Nov 20