Re: Listplot with appendto list

*To*: mathgroup at smc.vnet.net*Subject*: [mg125381] Re: Listplot with appendto list*From*: Bob Hanlon <hanlonr357 at gmail.com>*Date*: Sun, 11 Mar 2012 04:05:21 -0500 (EST)*Delivered-to*: l-mathgroup@mail-archive0.wolfram.com*References*: <201203101115.GAA08109@smc.vnet.net>

Create the list and then operate on the list. I've added a slope control. Manipulate[ list = a*Range[0, n]; ListLinePlot[list, PlotRange -> {{-0.01, 10}, {-0.01, 4}}], {{a, 0.2}, 0.1, 0.5, 0.1, Appearance -> "Labeled"}, {{n, 1, "N"}, 1, 10, 1, Appearance -> "Labeled"}] Bob Hanlon On Sat, Mar 10, 2012 at 6:15 AM, Scott Colwell <srcolwell at gmail.com> wrote: > 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} > ]

**References**:**Listplot with appendto list***From:*Scott Colwell <srcolwell@gmail.com>