Re: Changing Line Color in Plot
- To: mathgroup at smc.vnet.net
 - Subject: [mg96119] Re: Changing Line Color in Plot
 - From: "Sjoerd C. de Vries" <sjoerd.c.devries at gmail.com>
 - Date: Thu, 5 Feb 2009 04:41:36 -0500 (EST)
 - References: <gmbr6k$iib$1@smc.vnet.net>
 
By default, the color selection is not based on the function value.
It's pretty easy to select a color (and well documented, I'd say).
Some possibillities:
Plot[Sin[x], {x, 0, 4 \[Pi]}, PlotStyle -> Red]
Plot[Sin[x], {x, 0, 4 \[Pi]}, PlotStyle -> RGBColor[0.1, 0.5, 0.8]]
Plot[Sin[x], {x, 0, 4 \[Pi]}, PlotStyle -> Hue[0.7]]
Cheers -- Sjoerd
On Feb 4, 12:38 pm, "Yerex, Robert" <robert.ye... at kronos.com> wrote:
> I am trying to change the color of a line in a simple Plot of a function
> but want the color to be based on a value outside of that function. Any
> Idea?
>
> Robert P. Yerex, Ph.D., MBA
> Chief Economist / Director -  Data Mining
> Kronos Incorporated
> Talent Management Division
> p: 503-596-5015www.kronos.com
>
> Experts at Improving the Performance of People and Business(tm)
>
> P Be kind to the environment, please don't print this e-mail unless
> necessary.