MathGroup Archive 2012

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

Search the Archive

Listplot with appendto list


I have slider that control a variable (N) that is used in a calculation. Suppose the calculation is .2 x N. I want to have the answer at each level of N to be added to a list. The list is then plotted using ListPlot using the Joined -> True so that it updates at each level of N.

I've tried reap and so and AppendTo, but can't seem to get it to work.  Any thoughts?

Here's what I have so far:

Manipulate[
 list = {0};
 Show[
  ListPlot[
   AppendTo[list, .1*n],
   Joined -> True,
   PlotRange -> {{-0.01, 10}, {-0.01, 1}}
   ]],
 {{n, 1,  "N"}, 1, 10, 1}
 ]




  • Prev by Date: Re: much power to mathematica
  • Next by Date: Re: new functional operator
  • Previous by thread: Re: Real time sound processing?
  • Next by thread: Re: Listplot with appendto list