ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 04 Apr 2013 12:41:49 -0500show several graphics in notebookhttp://ask.sagemath.org/question/9990/show-several-graphics-in-notebook/I want to show several plots in the notebook, one after the other. If I have only one plot, I can usually show it with the function sum(), but if I put something else after the sum() then the plot doesn't show. So, for example, I want to show several plots one after the other by doing a while with the sum inside, but that doesn't work. It doesn't show any plot.Thu, 04 Apr 2013 12:12:59 -0500http://ask.sagemath.org/question/9990/show-several-graphics-in-notebook/Answer by calc314 for <p>I want to show several plots in the notebook, one after the other. If I have only one plot, I can usually show it with the function sum(), but if I put something else after the sum() then the plot doesn't show. So, for example, I want to show several plots one after the other by doing a while with the sum inside, but that doesn't work. It doesn't show any plot.</p>
http://ask.sagemath.org/question/9990/show-several-graphics-in-notebook/?answer=14735#post-id-14735In a chunk of Sage code, only the last plot gets shown. To show all of the plots, you'll need to use the `show` command on each to get them to appear. For example,
p=plot(x^2,(x,-2,2))
show(p)
plot(sin(x),(x,-pi,pi))
will show both plots.
Thu, 04 Apr 2013 12:41:49 -0500http://ask.sagemath.org/question/9990/show-several-graphics-in-notebook/?answer=14735#post-id-14735