Re: Help with ParametricPlot3D in color
- To: mathgroup at smc.vnet.net
- Subject: [mg4532] Re: [mg4416] Help with ParametricPlot3D in color
- From: Allan Hayes <hay at haystack.demon.co.uk>
- Date: Wed, 7 Aug 1996 04:17:39 -0400
- Sender: owner-wri-mathgroup at wolfram.com
ivan at nauplius.rsmas.miami.edu (Ivan Lima)
[mg4416] Help with ParametricPlot3D in color
writes
> I'm trying to plot some phase portraits of a three-dimensional
> system with ParametricPlot3D and I'd like it to plot the lines in
> color.
Ivan,
You can use the optional fourth entry in the parametric form:
ParametricPlot3D[
{{Cos[t],Sin[t],t, Hue[0]},{Cos[t],-Sin[t],t, Hue[2/3]}} ,
{t, 1, 2}
]
The coloring can depend on t
ParametricPlot3D[
{{Cos[t],Sin[t],t,Hue[t]},{Cos[t],-Sin[t],t,Hue[-t]}},
{t, 1, 2}
]
Allan Hayes
hay at haystack.demon.co.uk
==== [MESSAGE SEPARATOR] ====