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