Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #2077 > unrolled thread

Re: and color via PlotStyle

Started byDushan Mitrovich <dushanm@spinn.net>
First post2011-05-04 10:32 +0000
Last post2011-05-04 23:49 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Re: and color via PlotStyle Dushan Mitrovich <dushanm@spinn.net> - 2011-05-04 10:32 +0000
    Re: and color via PlotStyle AES <siegman@stanford.edu> - 2011-05-04 23:49 +0000

#2077 — Re: and color via PlotStyle

FromDushan Mitrovich <dushanm@spinn.net>
Date2011-05-04 10:32 +0000
SubjectRe: and color via PlotStyle
Message-ID<ipra0h$r1$1@smc.vnet.net>
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

[toc] | [next] | [standalone]


#2111

FromAES <siegman@stanford.edu>
Date2011-05-04 23:49 +0000
Message-ID<ipsols$8dp$1@smc.vnet.net>
In reply to#2077
> DrMajorBob wrote:

> > On the contrary, I've answered that question on this thread, and so 
> > have several others.

> > We've also answered it on a hundred other threads.

And does that very fact not tell us all something . . . ?

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web