RE: Q: plot in different colors
- To: mathgroup at smc.vnet.net
- Subject: [mg27710] RE: [mg27653] Q: plot in different colors
- From: "David Park" <djmp at earthlink.net>
- Date: Mon, 12 Mar 2001 02:09:52 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Robert, This is one approach. Use Hue. Using the full Hue specification where saturation and brightness are also controlled may give better colors for the curves, and putting the curves on top of a slightly gray background will allow them to stand out better. Plot[Evaluate[Table[n*Sin[x + n], {n, 1, 2, 0.1}]], {x, 0, 2*Pi}, PlotStyle -> Table[Hue[n, 1, 0.7], {n, 0, 1, 0.1}], Background -> GrayLevel[0.95]]; David Park djmp at earthlink.net http://home.earthlink.net/~djmp/ > From: Robert [mailto:robert.schuerhuber at gmx.at] To: mathgroup at smc.vnet.net > > hi! > 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? > regards, robert > >