Ask Your Question
1

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

asked 2013-05-26 17:22:21 -0500

boyfarrell gravatar image

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

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
4

answered 2013-05-26 19:28:05 -0500

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

edit flag offensive delete link more

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: 2013-05-26 17:22:21 -0500

Seen: 178 times

Last updated: May 26 '13