Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #6428 > unrolled thread
| Started by | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| First post | 2011-11-13 12:59 +0000 |
| Last post | 2011-11-13 12:59 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: how to plot new data points to pre-existing figure Bob Hanlon <hanlonr357@gmail.com> - 2011-11-13 12:59 +0000
| From | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| Date | 2011-11-13 12:59 +0000 |
| Subject | Re: how to plot new data points to pre-existing figure |
| Message-ID | <j9oeur$1lu$1@smc.vnet.net> |
Manipulate[
Module[{z},
z[x_, m_] = m*x;
Plot[z[x, m], {x, 0, 10},
PlotRange -> {{0, 10}, {0, 20}},
PlotLabel -> ToString[TraditionalForm[z[x, m]]]]],
{m, 1, 5, 1, Appearance -> "Labeled"}]
Bob Hanlon
On Sun, Nov 13, 2011 at 4:43 AM, tle <truongvle@yahoo.com> wrote:
> Hi,
>
> Could someone please tell me how to delete the old figure and create a new one in a for loop.
>
> thanks,
>
> testPlot[k_] := Module[{i, n, m, z},
> z[x_, m_] = m*x;
> For[i = 1, i < k,
> Print[{i}];
> plot1 =
> Plot[z[x, i], {x, 0, 10}, PlotRange -> {{0, 10}, {0, 20}}];
> Print[plot1];
> i++];
> ]
>
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web