# 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?

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?

add a comment

17

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.

-1

Asked: **
2010-08-22 22:36:55 -0500
**

Seen: **7,457 times**

Last updated: **Jul 11 '13**

Plot Series of 3D Direction Vectors (Not All from Origen)

Why does graph plotting crop so aggressively, and what is a work-around?

convert a symbolic var into a numeric var

Sage on Mac unable to use plot3d due to Java/jmol issues

Evenly space points along a parametric curve?

Piecewise functions and legend label

How to control layouts of individual plots within a graphics_array?

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.