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


Groups > comp.soft-sys.math.mathematica > #6428

Re: how to plot new data points to pre-existing figure

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!newspump.sol.net!posts.news.twtelecom.net!nnrp3.twtelecom.net!not-for-mail
From Bob Hanlon <hanlonr357@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: how to plot new data points to pre-existing figure
Date Sun, 13 Nov 2011 12:59:07 +0000 (UTC)
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Sender steve@smc.vnet.net
Approved Steven M. Christensen <steve@smc.vnet.net>, Moderator
Message-ID <j9oeur$1lu$1@smc.vnet.net> (permalink)
References <201111130943.EAA00009@smc.vnet.net>
Lines 30
NNTP-Posting-Date 13 Nov 2011 12:03:15 GMT
NNTP-Posting-Host 712bad15.news.twtelecom.net
X-Trace DXC=kVUDna_Hm6l3Y[822][L=nC_A=>8kQj6m=_1NR_H?JPmGjUJ]Jg13BdEFiONJ7[GofPIM`2UH`Kan
X-Complaints-To abuse@twtelecom.net
Xref x330-a1.tempe.blueboxinc.net comp.soft-sys.math.mathematica:6428

Show key headers only | View raw


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 comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: how to plot new data points to pre-existing figure Bob Hanlon <hanlonr357@gmail.com> - 2011-11-13 12:59 +0000

csiph-web