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

weird Manipulate/Animate

  • To: mathgroup at smc.vnet.net
  • Subject: [mg76682] weird Manipulate/Animate
  • From: mire <virgiliub at yahoo.com>
  • Date: Fri, 25 May 2007 06:50:40 -0400 (EDT)

does anyone know why this code works

graph = Table[Plot[Sin[x + i], {x, 0, \[Pi]}], {i, 3}];
ListAnimate[graph]

and this one doesn't

n = 3; graph = Table[0, {n}];
For[i = 1, i <= n, i++,
  graph[[i]] = Show[Plot[Sin[x + i], {x, 0, \[Pi]}]]];
ListAnimate[Evaluate[graph]]

?
 I am puzzled!



  • Prev by Date: Re: Problem in ContourPlot
  • Next by Date: packages question
  • Previous by thread: Re: Re: Antialiasing
  • Next by thread: Re: weird Manipulate/Animate