-1

I have this data :

69120 40859 258
69219 40860 255
69319 40862 228
....
69519 40865 263
69619 40867 266
69719 40869 261

It's the positions of points in a 3D graph (X,Y,Z), called a filiation of points

I have multiple filiations :

69120 41459 249
69219 41460 262
69319 41462 262
...
69719 41469 263
69819 41471 263
69919 41472 264

I would like to create a wireframes graph with mplot3d like this image but i don't what to put in X, Y, Z matrixs

exemple of wireframes graph

Thanks very much.

(Sorry for my bad english)

1 Answers1

0

As described in the documentation mplot3d tutorial X, Y and Z are 2D-arrays, not matrices. Assuming the columns in your data correspond to X, Y and Z you could do the following:

X = [[69120, 69219, 69319], [69120, 69219, 69319]]
Y = [[40859, 40860, 40862],  [41459, 41460, 41462]]
Z = [[258, 255, 228], [249, 262, 262]]

So one set of your data corresponds to one line in your plot. E. g. the first line consists of the points (69120/40859/258), (69219/40860/255) and (69319/40862/228) in (X/Y/Z) representation.

jonie83
  • 1,136
  • 2
  • 17
  • 28