MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Plot in a Do loop does nothing

  • To: mathgroup at smc.vnet.net
  • Subject: [mg78297] Re: [mg78229] Plot in a Do loop does nothing
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Wed, 27 Jun 2007 05:43:03 -0400 (EDT)
  • Reply-to: hanlonr at cox.net

Do[Print[Plot[Sin[x], {x, 0, 2*n*Pi}]], {n, 1, 2}]

GraphicsColumn[Table[Plot[Sin[x], {x, 0, 2*n*Pi}], {n, 1, 2}]]


Bob Hanlon

---- Tim Birks <pystab at hotmail.com> wrote: 
> 
> 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
> 
> 
> 



  • Prev by Date: Re: Book or Manual for 6?
  • Next by Date: Re: extracting fractional powers of series expansion?
  • Previous by thread: Re: Plot in a Do loop does nothing
  • Next by thread: Re: Plot in a Do loop does nothing