Re: Plot question

*To*: mathgroup at smc.vnet.net*Subject*: [mg80866] Re: Plot question*From*: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>*Date*: Tue, 4 Sep 2007 06:34:09 -0400 (EDT)*Organization*: Uni Leipzig*References*: <fbj2c3$nc9$1@smc.vnet.net>*Reply-to*: kuska at informatik.uni-leipzig.de

Hi, because: Plot[Evaluate[{a x, 2 a x, 3 a x} /. a -> 2], {x, 1, 2}, PlotStyle -> {Red, Green, Blue}] make the three color plot. Plot does not evaluat it argument, so it can't see that the result of ReplacAll[] is a List[] Regards Jens Yaroslav Bulatov wrote: > Why does the plot below make all 3 curves the same color? > > Plot[{a x, 2 a x, 3 a x} /. a -> 2, {x, 1, 2}, > PlotStyle -> {Red, Green, Blue}] > >