Howto output plot to pdf, eps or svg ?
Is it possible to output a plot to a pdf, eps or svg file? Does this work for all sorts of plots?
If the saveing function cannot work well, you can try to use a pdf converter control to transfer pdf to plot, beside to plot, pdf to html or image is also allowed..
Yes, you can save plots to those formats. Here's an example
sage: p = plot(x^2, x)
sage: p.save('test.pdf')
sage: p.save('test.eps')
sage: p.save('test.svg')
It works for any of Sage's Graphics
objects.
Just FYI - this doesn't work for 3d objects, which are not `Graphics` - docs say that it has to be PNG, BMP, GIF, PPM, or TIFF.
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 14 years ago
Seen: 10,680 times
Last updated: Jul 12 '13