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


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

Re: Coloring curves: not as simple as it sounds..

Started byDrMajorBob <btreat1@austin.rr.com>
First post2011-04-15 07:57 +0000
Last post2011-04-15 07:57 +0000
Articles 1 — 1 participant

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


Contents

  Re: Coloring curves: not as simple as it sounds.. DrMajorBob <btreat1@austin.rr.com> - 2011-04-15 07:57 +0000

#1695 — Re: Coloring curves: not as simple as it sounds..

FromDrMajorBob <btreat1@austin.rr.com>
Date2011-04-15 07:57 +0000
SubjectRe: Coloring curves: not as simple as it sounds..
Message-ID<io8tpv$qd2$1@smc.vnet.net>
Try:

Plot[{a x, a x^2, a x^3} /. {a -> 1}//Evaluate, {x, 0, 2},
  PlotStyle -> {Red, Green, Blue}]

Bobby

On Thu, 14 Apr 2011 03:49:21 -0500, Jean-Michel Di Nicola  
<jeanmichel.dinicola@gmail.com> wrote:

> All,
>
> I have a question that looks fairly trivial, but I cannot solve it....
> Please help!
>
> Thanks, JM
>
> Here is a simplified toy example.
> When I type
> Plot[{a x /. {a -> 1}, a x^2 /. {a -> 1}, a x^3 /. {a -> 1}}, {x, 0,
>   2}, PlotStyle -> {Red, Green, Blue}]
> I get 3 curves with different colors.
>
> Well, when I type
> Plot[{a x, a x^2, a x^3} /. {a -> 1}, {x, 0, 2},
>  PlotStyle -> {Red, Green, Blue}]
> I get 3 curves but they are all blue, WHY?
>
> However, when I evaluate {a x /. {a -> 1}, a x^2 /. {a -> 1}, a x^3 /.
> {a -> 1} and {a x, a x^2, a x^3} /. {a -> 1}, they both give the same
> result....{x, x^2, x^3}.
>
> Thank you for your help!!!
>


-- 
DrMajorBob@yahoo.com

[toc] | [standalone]


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


csiph-web