Connecting Points in Mathematica

I have a set of points displayed on a chart:

alt text http://img69.imageshack.us/img69/874/plc1k1lrqynuyshgrdegvfy.jpg

I would like to know if there is any command that will automatically link them along the xx and yy axis. This can be better understood by looking at the following picture: alt text http://img341.imageshack.us/img341/5926/tr53exnkpeofcuiw40koyks.jpg  (I do not ask how to implement the algorithm itself!).

thanks

+5
source share
3 answers

, , ComputationalGeometry . , ConvexHull , . Line . , , . , DelaunayTriangulation . . , .

+2

, , . -, , , .. , . , :

x- y- x min max y-. y-.

, . , , , .

+4

I will vote for the proposal dreeves . It does not use the "built-in" function, but uses a single-line interface with functional programming and level specifications. Implementation:

gridify[pts : {{_?NumericQ, _?NumericQ} ...}] :=
  Map[Line, GatherBy[pts, #]& /@ {First, Last}, {2}]
+4
source

All Articles