MathGroup Archive 2001

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

Search the Archive

Re: Q: plot in different colors

  • To: mathgroup at smc.vnet.net
  • Subject: [mg27684] Re: [mg27653] Q: plot in different colors
  • From: BobHanlon at aol.com
  • Date: Sun, 11 Mar 2001 04:04:27 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

funcs = Table[Sin[x - phi], {phi, 0, Pi, Pi/4}];

colors = Table[Hue[(k-1)/k], {k, Length[funcs]}];

Plot[Evaluate[funcs], {x, 0, 2Pi}, PlotStyle -> colors];

Bob Hanlon

In a message dated 2001/3/10 12:55:08 AM, robert.schuerhuber at gmx.at writes:

>if i plot a list of functons, how can i command mathematica to plot each
>function in a different color? i know i can use rgbcolor to change the
>color of the plot, but it is not practical to enter a list of
>rgbcolor[r,g,b] values at each plot. is there an (easy) solution to do
>this more or less automatically?


  • Prev by Date: Re: Re: Simple integration that Mathematica can't do?
  • Next by Date: Re: ReadList query
  • Previous by thread: Q: plot in different colors
  • Next by thread: RE: Q: plot in different colors