Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #8945
| From | Scott Colwell <srcolwell@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Listplot with appendto list |
| Date | 2012-03-10 11:17 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jjfd7d$7ul$1@smc.vnet.net> (permalink) |
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}
]
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Listplot with appendto list Scott Colwell <srcolwell@gmail.com> - 2012-03-10 11:17 +0000
csiph-web