Re: new behavior of Plot
- To: mathgroup at smc.vnet.net
- Subject: [mg78563] Re: new behavior of Plot
- From: Helen Read <hpr at together.net>
- Date: Wed, 4 Jul 2007 05:37:54 -0400 (EDT)
- References: <f65aq2$9jg$1@smc.vnet.net> <200707011145.HAA15125@smc.vnet.net> <200707021054.GAA18072@smc.vnet.net> <f6d6ml$o6m$1@smc.vnet.net>
- Reply-to: HPR <read at math.uvm.edu>
Selwyn Hollis wrote: > Apologies if this has been mentioned here before and I missed it, but > I just accidently discovered that Mathematica 6 has squashed one of > the top three FAQs of all time. > > This now works without using Evaluate: > > fns = Table[Cos[x - c], {c, -1, 1, .2}]; > Plot[fns, {x, -5, 5}] > > So does this, but all the curves are drawn with the same color: > > Plot[Table[Cos[x - c], {c, -1, 1, .2}], {x, -5, 5}] This gets different colors. Plot[Evaluate[Table[Cos[x - c], {c, -1, 1, .2}]], {x, -5, 5}] > This is all rather mysterious, since Plot still has the attribute > HoldAll. > > Can anyone explain? -- Helen Read University of Vermont
- References:
- Re: Graphics package in v6
- From: Helen Read <hpr@together.net>
- RE: Re: Graphics package in v6
- From: "Jaccard Florian" <Florian.Jaccard@he-arc.ch>
- Re: Graphics package in v6