Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

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: [mg78241] Re: Plot in a Do loop does nothing
  • From: markholtuk at googlemail.com
  • Date: Wed, 27 Jun 2007 05:14:21 -0400 (EDT)
  • References: <f5qmft$475$1@smc.vnet.net>

On Jun 26, 10:32 am, "Tim Birks" <pys... 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

Hi Tim,
Either of these will show the plots:

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

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

Best wishes,

Mark



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