Re: Coloring 2DPlot with different colors
- To: mathgroup at yoda.physics.unc.edu (mathgroup)
- Subject: Re: Coloring 2DPlot with different colors
- From: ianc (Ian Collier)
- Date: Sat, 11 Jun 1994 18:58:21 -0600
>Does any one knows how to make on 2DPlot with different colors? For
>example, I'd like to use two different color to emphasize decreasing or
>increasing of a function or the positive and negative values of a function.
>
>Thanks for help.
>
>Jian-hua
Try:
Needs["Graphics`Colors`"] (* Loads package that defines colours*)
Plot[ {Sin[x]/x, Cos[x]},{x, -10,10},
PlotStyle -> {Red, Blue}]
--Ian