Re: ListLinePlot[] inside a loop
- To: mathgroup at smc.vnet.net
- Subject: [mg82387] Re: [mg82365] ListLinePlot[] inside a loop
- From: DrMajorBob <drmajorbob at bigfoot.com>
- Date: Fri, 19 Oct 2007 04:55:33 -0400 (EDT)
- References: <5427620.1192717715253.JavaMail.root@m35>
- Reply-to: drmajorbob at bigfoot.com
Do[Print@ListLinePlot[Table[{x, Sin[i*x Degree]}, {x, 0, 360}],
PlotRange -> {{0, 360}, {-1.1, 1.1}}], {i, 1, 3}];
Bobby
On Thu, 18 Oct 2007 04:00:16 -0500, Luiz Melo <luiz.melo at polymtl.ca> wrote:
> Hi mathgroup,
>
> Why is the plot of a list not displayed when ListLinePlot[] is used
> inside a Do
> loop (Mathematica 6.0)?
> For instance, suppose we want to produce the graphics of Sin[i*x] as a
> function
> of x, each time i is iterated from 1 to 3 (in steps of 1). I naively
> tryed:
>
> Do[ListLinePlot[Table[{x, Sin[i*x Degree]}, {x, 0, 360}],
> PlotRange -> {{0, 360}, {-1.1, 1.1}}], {i, 1, 3}];
>
> The specifications "For[]" and "While[]" don't work either.
> Thanks,
> Luiz
>
>
>
> --
> Luiz Melo
> École Polytechnique de Montréal
> Département de Génie Physique
> C.P.6079, succ. Centre-ville
> Montréal (QC) Canada
> H3C 3A7
> Tél (514)340-4711-7454
> Fax (514)340-3218
>
>
--
DrMajorBob at bigfoot.com