Ask Your Question

Howto output plot to pdf, eps or svg ?

asked 2010-08-23 05:36:55 +0200

Harald Schilly gravatar image

Is it possible to output a plot to a pdf, eps or svg file? Does this work for all sorts of plots?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2010-08-23 06:19:02 +0200

Mike Hansen gravatar image

Yes, you can save plots to those formats. Here's an example

sage: p = plot(x^2, x)

It works for any of Sage's Graphics objects.

edit flag offensive delete link more



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.

kcrisman gravatar imagekcrisman ( 2010-08-23 15:25:02 +0200 )edit

answered 2013-07-04 00:48:25 +0200

Wheatley gravatar image

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..

edit remove flag flag offensive (1) 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


Asked: 2010-08-23 05:36:55 +0200

Seen: 9,775 times

Last updated: Jul 12 '13