Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

With the command ListPlot[data,Joined -> True] I can visually connect adjacent data points in the array with lines. However, this option appears to be missing in ListPointPlot3D? Is there some manner with which to join with to join (with a line) adjacent three-dimensional points? There will be a large number of points in my data structure, and I'd really like to keep the standard output format of ListPointPlot3D.

share|improve this question
    
'Adjacent` can have a rather fuzzy meaning. Are the points on one surface or segregated to some fixed number of surfaces? If so, you can just use ListPlot3D. –  rasher Jan 24 at 5:15
    
@rasher Adjacent just means that the elements in the array are next to one another, e.g. {A,B,C,D,...} would have "A" next to "B", "B" is next to both "A" and "C", and so forth. –  110110 Jan 24 at 5:17
    
@rasher The problem with ListPlot3D is that I don't want a surface, I just want a "chain" of connected points like this: mars.cs.umn.edu/projects/current/VisionAidedINS_MSCKF/… –  110110 Jan 24 at 5:26

1 Answer 1

up vote 7 down vote accepted
pts = RandomReal[{0, 1}, {19, 3}]; 
Show[ListPointPlot3D@pts, Graphics3D@Line@pts]

Mathematica graphics

Edit:

Something slightly more useful as an example:

data = RandomFunction[RandomWalkProcess[0.3], {0, 10^2}, 3];
pts = Transpose@data["States"];
Show[ListPointPlot3D@#, Graphics3D@Line@#] &@pts

Mathematica graphics

share|improve this answer
    
Very very nice. –  110110 Jan 24 at 5:35
    
Why not Graphics3D[{Point@pkt, Line@pkt}]? Because of axes etc? –  Kuba Jan 24 at 8:09
    
@Kuba The OP said "I'd really like to keep the standard output format of ListPointPlot3D", and I think he better way to keep the format of ListPointPlot3D[] is by using it :) –  belisarius Jan 24 at 11:13
    
oh, right :) +1 :P –  Kuba Jan 24 at 11:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.