MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Plot question


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}]
> 
> 


  • Prev by Date: Re: date format
  • Next by Date: Re: using units and plotting
  • Previous by thread: Plot question
  • Next by thread: Re: Plot question