# What to do to save a plot from notebook?

Is it possible to export a plot, preferable in a vector format from a notebook?

What to do to save a plot from notebook?

Is it possible to export a plot, preferable in a vector format from a notebook?

add a comment

1

svg is a vector format:

```
sage: G = plot(sin(x), 0, 2*pi)
sage: G.save('filename.svg')
```

Other options are:

```
sage: G.save('filename.pdf')
sage: G.save('filename.png') # not a vector format
```

The files are saved in the present working directory (pwd):

```
sage: pwd
...
```

0

Yes

```
sage: G = Graphics() # an graphic
sage: G.save('my_file.pdf') # save in pdf format
sage: G.save('my_file.svg') # save in svg format
```

Asked: **
2017-11-17 02:24:37 -0600
**

Seen: **180 times**

Last updated: **Nov 20 '17**

show several graphics in notebook

Cannot use pip because pip is configured with locations that require TLS/SSL

Converting R variables to sage

Change the edge thickness in a graph plot

LaTeX in plot not showing Greek letter

Graph edge label: formatting possibilities

How can a cell output its own ID?

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.