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


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

Re: and color via PlotStyle

From Dushan Mitrovich <dushanm@spinn.net>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: and color via PlotStyle
Date 2011-05-04 10:32 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <ipra0h$r1$1@smc.vnet.net> (permalink)

Show all headers | View raw


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

Back to comp.soft-sys.math.mathematica | Previous | NextNext in thread | Find similar | Unroll thread


Thread

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

csiph-web