RE: how to plot 2 functions in different colors?
- To: mathgroup at smc.vnet.net
- Subject: [mg33592] RE: [mg33583] how to plot 2 functions in different colors?
- From: "David Park" <djmp at earthlink.net>
- Date: Wed, 3 Apr 2002 01:13:14 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Guojun,
Use the PlotStyle option to obtain curves in different styles.
Needs["Graphics`Colors`"]
Plot[{Sin[x], Cos[x]}, {x, 0, 2Pi},
PlotStyle -> {{Blue, AbsoluteDashing[{5}]}, Red}];
David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/
> From: Guojun Zhu [mailto:gzhu1 at uiuc.edu]
To: mathgroup at smc.vnet.net
>
>
> 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
>
>