Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: Re: [mg4416] Help with ParametricPlot3D in color
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Allan Hayes

Posts: 1,508
Registered: 12/6/04
Re: [mg4416] Help with ParametricPlot3D in color
Posted: Jul 30, 1996 2:58 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

ivan@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@haystack.demon.co.uk







Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.