ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 27 May 2013 02:28:05 +0200Can I make plot(f(x)) figures smaller?https://ask.sagemath.org/question/10155/can-i-make-plotfx-figures-smaller/The plot command is very useful, but the default size of plots is quite large. Is it possible to reduce the size?Mon, 27 May 2013 00:22:21 +0200https://ask.sagemath.org/question/10155/can-i-make-plotfx-figures-smaller/Answer by vdelecroix for <p>The plot command is very useful, but the default size of plots is quite large. Is it possible to reduce the size?</p>
https://ask.sagemath.org/question/10155/can-i-make-plotfx-figures-smaller/?answer=14967#post-id-14967You 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)`.Mon, 27 May 2013 02:28:05 +0200https://ask.sagemath.org/question/10155/can-i-make-plotfx-figures-smaller/?answer=14967#post-id-14967