MathGroup Archive 1994

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

Search the Archive

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









  • Prev by Date: RE: From Mathematica to Gnuplot
  • Next by Date: Re:Coloring 2DPlot with different colors
  • Previous by thread: Coloring 2DPlot with different colors
  • Next by thread: Re:Coloring 2DPlot with different colors