Re: PlotStyle in version 6

*To*: mathgroup at smc.vnet.net*Subject*: [mg80483] Re: PlotStyle in version 6*From*: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>*Date*: Thu, 23 Aug 2007 01:13:47 -0400 (EDT)*Organization*: The Open University, Milton Keynes, UK*References*: <fagu9d$95o$1@smc.vnet.net>

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