# Can I make plot(f(x)) figures smaller?

The plot command is very useful, but the default size of plots is quite large. Is it possible to reduce the size?

Can I make plot(f(x)) figures smaller?

add a comment

4

You should have a look at the documentation of plot with

```
sage: plot?
```

There are plenty of options. In particular, to obtain a small picture you have the option `figsize`

as in

```
sage: plot(sin(x), (x,-pi,pi), figsize=4)
```

or

```
sage: P = plot(sin(x), (x,-pi,pi))
sage: P.show(figsize=4)
```

The default value for `figsize`

seems to be 8. With 4 you obtain quite a small picture. Note that you can also set this parameter to a pair `(width,height)`

.

Asked: **
2013-05-26 17:22:21 -0500
**

Seen: **169 times**

Last updated: **May 26 '13**

Add plots with different ymin, ymax parameters?

question about plotting points and calculating the average slope

How to plot derivative and antiderivative of a spline

How can I use aplpack in http://www.sagenb.org/

Generating functions and plotting them with different colors

Polar plot by points? (i.e. polar_line?)

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.