Re: and color via PlotStyle
- To: mathgroup at smc.vnet.net
- Subject: [mg118597] Re: and color via PlotStyle
- From: Dushan Mitrovich <dushanm at spinn.net>
- Date: Wed, 4 May 2011 06:32:45 -0400 (EDT)
DrMajorBob wrote:
>> ... but nobody has (AFAIK) done the obvious, namely
>> stated the solution to the question: Just how does one get
>> differently-colored curves when using the '/.{a->1}'?
>
> On the contrary, I've answered that question on this thread, and so
> have several others.
Yes, so I've learned. Somehow I missed its previous mention in this thread.
> We've also answered it on a hundred other threads.
>
> But here it is again:
>
> Plot[{ a x, a x^2, a x^3} /. {a -> 1} // Evaluate, {x, 0, 2},
> PlotStyle -> {Red, Green, Blue}]
>
> or this:
>
> list = { a x, a x^2, a x^3} /. {a -> 1};
> Plot[list, {x, 0, 2},
> PlotStyle -> {Red, Green, Blue}]
>
> Also, you can look up PlotStyle in Help, and gaze in wonder at THE
> VERY FIRST EXAMPLE.
>
> Plot[Evaluate@Table[BesselJ[n, x], {n, 3}], {x, 0, 15}]
>
> Now try it without Evaluate, and see what happens:
>
> Plot[Table[BesselJ[n, x], {n, 3}], {x, 0, 15}]
>
> Bobby
Thanks for the info. I'll do more checking before inquiring next time.
- Dushan