What to do to save a plot from notebook?
Is it possible to export a plot, preferable in a vector format from a notebook?
Is it possible to export a plot, preferable in a vector format from a notebook?
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
...
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
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2017-11-17 09:24:37 +0100
Seen: 1,149 times
Last updated: Nov 20 '17
Plotting x, free variable error
Notebook List Object Data Storage/Retrieval? (Start/Restart)
Short Cython Example In A Notebook Cell?
What happens in insecure mode?
Is notebook() mutually-exclusive from "./sage -gdb" mode?
How to save a plot from notebook?
Can I pause a computation rather than aborting it? (Interrupt Command)
What state is preserved when I close a running notebook browser window?