Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #8945 > unrolled thread

Listplot with appendto list

Started byScott Colwell <srcolwell@gmail.com>
First post2012-03-10 11:17 +0000
Last post2012-03-10 11:17 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Listplot with appendto list Scott Colwell <srcolwell@gmail.com> - 2012-03-10 11:17 +0000

#8945 — Listplot with appendto list

FromScott Colwell <srcolwell@gmail.com>
Date2012-03-10 11:17 +0000
SubjectListplot with appendto list
Message-ID<jjfd7d$7ul$1@smc.vnet.net>
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}
 ]

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web