Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2002
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2002

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

Search the Archive

Re: how to plot 2 functions in different colors?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg33604] Re: how to plot 2 functions in different colors?
  • From: Tim Brophy <timbrophy at eircom.net>
  • Date: Wed, 3 Apr 2002 01:13:31 -0500 (EST)
  • Organization: Eircom.Net http://www.eircom.net
  • References: <a8bqpf$3kn$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

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?