MathGroup Archive 2002

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

Search the Archive

Re: how to plot 2 functions in different colors?


On 4/2/02 10:40 AM, in article a8bqpf$3kn$1 at smc.vnet.net, "Guojun Zhu"
<gzhu1 at uiuc.edu> wrote:

> I can plot two functions in one diagram with plot[{fa[x],fb[x]},{x,1,100}],
> but they are in same color and hard to seperated.  Is there any way to make
> them in different colors?
> 
> --
> Sincerely Yours
> Guojun Zhu
> 
> 
Try something like

Plot[{Sin[x], Cos[x]}, {x, -5, 5}, 
  PlotStyle -> {RGBColor[1, 0, 0],
RGBColor[0, 1, 0]}]

Tim Brophy


  • Prev by Date: Re: how to plot 2 functions in different colors?
  • Next by Date: RE: how to plot 2 functions in different colors?
  • Previous by thread: Re: how to plot 2 functions in different colors?
  • Next by thread: RE: how to plot 2 functions in different colors?