Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1993
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1993

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Mathematica Help: Plotting lines in 3D.

  • To: mathgroup at yoda.physics.unc.edu
  • Subject: Re: Mathematica Help: Plotting lines in 3D.
  • From: twj
  • Date: Wed, 3 Feb 93 12:53:24 CST

Ranjan Bagchi writes:
 

>	My question is how to plot a list of 3-tuples as a curve
>in 3-space.  I get this list as the output of a RungeKutta
>procedure, and would like to see it this way.  However, ListPlot3D
>doesn't do anything close to what I want.

ListPlot3D will plot a surface.  You want a line.  This can be done
with the function ScatterPlot3D which is defined in the package
Graphics`Graphics3D.  This is documented in the Guide To Standard
Packages.

Thus for example

	Mathematica 2.1 for NeXT
	Copyright 1988-92 Wolfram Research, Inc.
	 -- NeXT graphics initialized -- 


	In[1]:= <<Graphics`Graphics3D`

	In[2]:= data = Table[ { t Cos[t], t Sin[t], t}, 

					{t,0,4Pi,Pi/20}];

	In[3]:= ScatterPlot3D[ data, PlotJoined -> True]

	Out[3]= -Graphics3D-

PlotJoined -> False will result in Points.


Tom Wickham-Jones
Wolfram Research Inc.






  • Prev by Date: NeXT Mma Upgrade Advice (2.0.2 -> 2.1)
  • Next by Date: output in lisp form
  • Previous by thread: NeXT Mma Upgrade Advice (2.0.2 -> 2.1)
  • Next by thread: output in lisp form