Ask Your Question
0

show several graphics in notebook

asked 11 years ago

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.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
3

answered 11 years ago

calc314 gravatar image

updated 11 years ago

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.

Preview: (hide)
link

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: 11 years ago

Seen: 407 times

Last updated: Apr 04 '13