Re: Colors in Plot[]

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

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. Kevin lehin.p at gmail.com 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? >