Re: Plot in a Do loop does nothing
- To: mathgroup at smc.vnet.net
- Subject: [mg78245] Re: Plot in a Do loop does nothing
- From: "David Park" <djmpark at comcast.net>
- Date: Wed, 27 Jun 2007 05:16:24 -0400 (EDT)
- References: <f5qmft$475$1@smc.vnet.net>
Because Do produces no Output cells. In pre-Version 6 Mathematica, plots were a side effect and not Output cells. In Version 6 they are Output cells. The solution is to use Table instead of Do. -- David Park djmpark at comcast.net http://home.comcast.net/~djmpark/ "Tim Birks" <pystab at hotmail.com> wrote in message news:f5qmft$475$1 at smc.vnet.net... > > Can anyone please explain why the line: > Do[Plot[Sin[x], {x, 0, 2*n*Pi}], {n, 1, 2}] > > does nothing in Mathematica 6? Or, how else I can produce such a series of > related plots? It worked fine in Mathematica 5! > > T > > >