MathGroup Archive 2008

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

Search the Archive

Re: Colors in Plot[]

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[]