MathGroup Archive 2007

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

Search the Archive

weird Manipulate/Animate


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