First time here? Check out the FAQ!

Ask Your Question
10

Howto output plot to pdf, eps or svg ?

asked 14 years ago

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?

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
18

answered 14 years ago

Mike Hansen gravatar image

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.

Preview: (hide)
link

Comments

3

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 ( 14 years ago )
0

answered 11 years ago

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

Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 14 years ago

Seen: 10,568 times

Last updated: Jul 12 '13