Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Table[Plot[]]doesn't work as it should in v6

  • To: mathgroup at smc.vnet.net
  • Subject: [mg84298] Re: Table[Plot[]]doesn't work as it should in v6
  • From: dflatin at rcn.com
  • Date: Tue, 18 Dec 2007 02:18:40 -0500 (EST)
  • References: <fk73se$6d7$1@smc.vnet.net>

On Dec 17, 7:22 pm, sean_incali <sean_inc... at yahoo.com> wrote:
> I have this code for v5. It generates list of plots(i think) which
> then can collapsed into single cell that shows the first graph which
> can be animated by double clicking on it.
>
> Table[Plot[i/(1 + y^2), {y, 0, 8},
>   PlotStyle -> RGBColor[1, (i - 0.8)/i, 0], PlotRange -> {0, 8},
>   AspectRatio -> Automatic], {i, 1, 8, 0.1}]
>
> In v6, the same code seems to make a graphics array surrounded by
> curly brackets and separated by commas. (what is with this?  is there
> not a way to get rid of these puctuations?)
>
> Of course I don't need, at the moment, to have an animation. But i
> always thought it was a nice, simple application of Table that had a
> great result.
>
> Is this a bug or does anyone have same problem when the code is run on
> their computer?
>
> Also, if this is not a bug, but a feature, how would you get the old
> style Table of plots/ where you get the collpsable cell with all the
> graphs in a series?
>
> Thanks for any info ion advance,
>
> sean

Sean,

Simply replace Table with Animate for a purpose built solution in
version 6, i.e.:

Animate[Plot[i/(1 + y^2), {y, 0, 8},
  PlotStyle -> RGBColor[1, (i - 0.8)/i, 0], PlotRange -> {0, 8},
  AspectRatio -> Automatic], {i, 1, 8, 0.1}]

Dan


  • Prev by Date: Re: Table[Plot[]]doesn't work as it should in v6
  • Next by Date: Re: LinearSolve[m, b] is not equivalent to LinearSolve[m][b]
  • Previous by thread: Re: Table[Plot[]]doesn't work as it should in v6
  • Next by thread: Re: Table[Plot[]]doesn't work as it should in v6