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: Help with ParametricPlot3D in color
Replies: 2   Last Post: Jul 19, 1996 3:06 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Ivan Lima

Posts: 1
Registered: 12/11/04
Help with ParametricPlot3D in color
Posted: Jul 17, 1996 1:35 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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. After two days looking at the manuals I can't find any way to
do that. Does anybody know how to do that? Sorry for posting such a
stupid question. I'm kind of new to Mathematica graphics and any
help will be appreciated

Bellow are the commands I'm using.

In[1]:= NDSolve[{x'[t] == r x[t] - c x[t]^2 - g (x[t]/(x[t]+h)) y[t],
y'[t] == g (x[t]/(x[t]+h)) y[t] e - m y[t] - p (y[t]/(y[t]+i)) z[t],
z'[t] == p (y[t]/(y[t]+i)) z[t] e - n z[t],
x[0] == 0.1, y[0] == 0.1, z[0] == 0.1},
{x, y, z}, {t, 0, 20000}, MaxSteps->250000]

Out[1]= {{x -> InterpolatingFunction[{0., 20000.}, <>],

> y -> InterpolatingFunction[{0., 20000.}, <>],

> z -> InterpolatingFunction[{0., 20000.}, <>]}}

In[2]:= ParametricPlot3D[Evaluate[{x[t],y[t],z[t]} /. %],
{t, 100, 20000}, PlotPoints -> 20000,
PlotRange -> {{0, 6}, {0, 2}, {0, 1}},
ColorOutput -> RGBColor,
ViewPoint -> {1.3, 2.4, 2.}]
Out[2]= -Graphics3D-


Thanks

Ivan
--
/|
Ivan Lima | O __/ |_
Rosenstiel School of Marine and Atmospheric Science | o /o \_/|
Division of Marine Biology and Fisheries | ( < _ |
ivan@nauplius.rsmas.miami.edu | \__ _/ \|
http://nauplius.rsmas.miami.edu/homepage/home.html | \_|







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.