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
Asked: 2017-11-17 02:24:37 -0600
Seen: 636 times
Last updated: Nov 20 '17
Access local Sage notebook online
plotting multiple functions from a for loop
sage notebook does not respond to commands in cell
previous fontsize settings in plot now produce huge fonts
How to change default font-size in shift-click-created cells inside Sage Notebook?
Checking the progress of a calculation
Default worksheet "sort order" in Notebook