Re: Changing Line Color in Plot

*To*: mathgroup at smc.vnet.net*Subject*: [mg96130] Re: Changing Line Color in Plot*From*: Alexei Boulbitch <Alexei.Boulbitch at iee.lu>*Date*: Fri, 6 Feb 2009 04:11:50 -0500 (EST)

You may do it in several ways, still staying kind to environment. Here is one of them. Assume z is such a value, and 0<z<zmax; Denote y=z/zmax. Then 0<y<1 Execute the following: f[y_] := Plot[Sin[x], {x, 0, 2 Pi}, PlotStyle -> Hue[y]]; f[0.1] f[0.3] f[0.7] f[0.9] It may help. Success, Alexei 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-5015 www.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. -- Alexei Boulbitch, Dr., Habil. Senior Scientist IEE S.A. ZAE Weiergewan 11, rue Edmond Reuter L-5326 Contern Luxembourg Phone: +352 2454 2566 Fax: +352 2454 3566 Website: www.iee.lu This e-mail may contain trade secrets or privileged, undisclosed or otherwise confidential information. If you are not the intended recipient and have received this e-mail in error, you are hereby notified that any review, copying or distribution of it is strictly prohibited. Please inform us immediately and destroy the original transmittal from your system. Thank you for your co-operation.