RE: animated, variable color lines in ListPlot
- To: mathgroup at smc.vnet.net
- Subject: [mg15623] RE: [mg15594] animated, variable color lines in ListPlot
- From: "Jean-Marie THOMAS" <jmthomas at agat.net>
- Date: Sat, 30 Jan 1999 04:28:25 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Try this: g[n_]:=Plot[Cos[t],{t,(n-1)Pi/12 ,n Pi/12 },PlotStyle->Hue[n/12], PlotRange->{{0,2 Pi},{-1,1}}] Do[p[n]=g[n],{n,24}] Show[Table[p[n],{n,24}]] Do[Show[Table[p[n],{n,k}]],{k,24}] Hope this helps, **************************************** Jean-Marie THOMAS mailto:jmthomas at agat.net Conseil et Audit en Ingenierie de Calcul Strasbourg, France http://www.agat.net **************************************** -----Original Message----- From: Dick Phillips [mailto:poppa at ix.netcom.com] To: mathgroup at smc.vnet.net Subject: [mg15623] [mg15594] animated, variable color lines in ListPlot Hi, I'm trying to do an animation of the progressive development of a curve in ListPlot, where the color of a just-revealed segment of the curve is different from the previously-displayed segment. That is, at the end of the animation, the complete curve will be multi-colored. It's easy to change the color of the ENTIRE cuve at each time step, but I need to show the color evolution. Thanks for any ideas on how to do this. Dick Phillips