MathGroup Archive 2008

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

Search the Archive

Re: Colors in Plot[]

  • To: mathgroup at
  • Subject: [mg90999] Re: Colors in Plot[]
  • From: "Kevin J. McCann" <Kevin.McCann at>
  • Date: Sat, 2 Aug 2008 03:27:48 -0400 (EDT)
  • Organization: University System of Maryland
  • References: <g6ucfj$pc9$>

Because in the middle one you specified a style in which Blue came 
second and superseded the previous Red. Had you used {Red,Blue,Green}, 
it would have been Green. If you just used PlotStyle->{Red} or even 
PlotStyle->Red, you would be fine.


lehin.p at wrote:
> Hello,
> It is interesting behavour and I do not understand the reason for
> this:
> g[x_, n_] := x^n
> Plot[g[x, 1], {x, 0, 1}]
> Plot[g[x, 1], {x, 0, 1}, PlotStyle -> {Red, Blue}]
> Plot[g[x, 1], {x, 0, 1}, PlotStyle -> {Red, Red}]
> Why the second plot is Blue but the third is Red?

  • Prev by Date: Re: Exported PDFs are too big in file size.
  • Next by Date: Need a Faster Solution to Number Theory Problem
  • Previous by thread: Colors in Plot[]
  • Next by thread: Re: Colors in Plot[]