MathGroup Archive 2007

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

Search the Archive

Re: Plot in a Do loop does nothing


Tim Birks 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

Use *Print* as in

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

Regards,
Jean-Marc


  • Prev by Date: Re: Plot in a Do loop does nothing
  • Next by Date: Re: Plot in a Do loop does nothing
  • Previous by thread: Re: Plot in a Do loop does nothing
  • Next by thread: Re: Plot in a Do loop does nothing