Ask Your Question
0

show several graphics in notebook

asked 2013-04-04 19:12:59 +0200

barefeg gravatar image

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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2013-04-04 19:41:49 +0200

calc314 gravatar image

updated 2013-04-04 19:42:07 +0200

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

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-04-04 19:12:59 +0200

Seen: 328 times

Last updated: Apr 04 '13