enthought / mayavi

3D visualization of scientific data in Python
http://docs.enthought.com/mayavi/mayavi/
Other
1.3k stars 284 forks source link

Is it possible to use one array instead of three in mlab.plot3d? #1072

Open cvillagrasa opened 3 years ago

cvillagrasa commented 3 years ago

Hi, in the following code it seems that passing one argument as a list of points is foreseen: https://github.com/enthought/mayavi/blob/e360db9b5edec706501cfb40579b71afd8f79abb/mayavi/tools/sources.py#L942-L945

However, the following part later prevents it: https://github.com/enthought/mayavi/blob/master/mayavi/tools/sources.py#L1198-L1199

Am I looking at it right, or is it always needed to separate the Xs, Ys and Zs into three args?