# 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

16

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: **6,409 times**

Last updated: **Jul 11 '13**

Graph or plot a system of inequalities

How to make two plots on a different scale

ATAN2 AssertionError while plotting complex squareroot function

sage.plot.plot3d.shapes2.Line() does not work in the cloud

No legend when plotting list of points

No result in published worksheet

Plotting in 3D in spherical coordinates

How to change the default program which open the 2D picture which the plot producted?

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.