MathGroup Archive 2009

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

Search the Archive

Re: Changing Line Color in Plot

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" < at> 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:
> 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.

  • Prev by Date: Re: Mathematica 7 benchmarks on Suse 11
  • Next by Date: Options for Eigenvalues
  • Previous by thread: Re: Changing Line Color in Plot
  • Next by thread: Re: Changing Line Color in Plot