MathGroup Archive 2007

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

Search the Archive

Re: PlotStyle in version 6


ben wrote:

> Could you please help me pointing out,
> why the following line of code
> produces to curves of the same plotstyle ?
> 
> Plot[{t, 1 + t} /. vals, {t, 0, 10},
>  PlotStyle -> {{Red, Dashed}, {Blue}}]

Wrap the list of functions and the replacement rules within *Evaluate* 
as in the following example:

vals = t -> t^2; (* I make up something for vals *)
Plot[Evaluate[{t, 1 + t} /. vals], {t, 0, 10},
  PlotStyle -> {{Red, Dashed}, {Blue}}]

[... bi-color graph deleted ...]

HTH,
-- 
Jean-Marc



  • Prev by Date: From PaddedForm to numbers?
  • Next by Date: Re: Outer with index in bounds
  • Previous by thread: Re: PlotStyle in version 6
  • Next by thread: Re: PlotStyle in version 6